How does the JWT token get to the BOSH server?


#1

How exactly does the JWT token make it from the Meet client URL to the BOSH server?

The documentation at https://github.com/jitsi/lib-jitsi-meet/blob/master/doc/tokens.md reads:

Token value is passed as ‘token’ query paramater of BOSH URL

When I open the Meet client, using this: https://meet.jit.si/testtokenroom?jwt=“eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ”

I expected that token to be used somewhere in the BOSH URL. That does not appear to be the case though, as this is the URL that is being POSTed to for BOSH: https://meet.jit.si/http-bind?room=testtokenroom

Where’s the token?


#2

Yep this is the way it should work. I need to check why it is not propagating on meet.jit.si.
But I just tested on another deployment where we have tokens and I see this:
https://jitsi-meet.example.com/http-bind?room=twospidershurryselfishly&token=eyJhbGciOiJSUzI
And this is how the token reaches the xmpp server.