Skip to content

bosh with jwt not working #3827

Answered by badlop
sagundhk asked this question in Questions
May 24, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

I can use BOSH connection and JWT auth method, using ejabberd 22.05 and tkabber client.

Following exactly the explanations in https://www.process-one.net/blog/ejabberd-19-08/

I use the default configuration, with just those changes:

diff --git a/ejabberd.yml.example b/ejabberd.yml.example
index 8eb038dd0..8abb510f5 100644
--- a/ejabberd.yml.example
+++ b/ejabberd.yml.example
@@ -16,6 +16,10 @@
 
 hosts:
   - localhost
+  - example.org
+
+auth_method: jwt
+jwt_key: /ejabberd/secret.jwk
 
 loglevel: info
 
@@ -65,6 +69,7 @@ listen:
     module: ejabberd_http
     request_handlers:
       /admin: ejabberd_web_admin
+      /bosh: mod_bosh
       /.well-known/acme-challenge: ejabberd_acme
   -…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sagundhk
Comment options

Answer selected by sagundhk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants