-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mattermost generating a invalid JWT token #222
Comments
I had the same error and was able to bypass it for now by adjusting the envars at docker-jitsi-meet with:
|
We do have on-prem hosting of Mattermost & Jitsi as well. As @arifulislamat, we get the same error:
I also tried setting
Still the same error. Environment:
|
Stupid stupid me! I made a typo in the variable. Overriding
As well as these CI/CD variables: Please note we're simply fetching the origin Docker Compose & VERSION=stable-7882
GIT_URL=https://raw.githubusercontent.com/jitsi/docker-jitsi-meet/${VERSION}
env:
curl -sSfLo .env ${GIT_URL}/env.example
cat .env.confirm >>.env |
I gave it another try because it was working for you. It didn't work out for me, sadly. To match your version, I've also tried using an upgraded version of Jitsi. However, this time I was able to discover exactly why it was giving me that error. Mattermost generated token takes the Jitsi hostname and puts it on the subject, it looks like this:
The same token operates if I replace an asterisk (*) for the subject string.
I realized as I read more about this that what @x1h0 proposed ought to work. Nevertheless, perhaps I am still missing something. @domibarton Thanks for sharing your workaround! |
Mattermost Version: 7.1.3 (Enterprise Edition)
Plugin Version:2.0.0
Describe the issue: JWT token isn't working. Jitsi is working fine with other software with JWT. The token generate from mattermost plugin has a Invalid Signature reported by jwt.io
Server Error Logs:
muc.meet.jitsi:token_verification error Token .... not allowed to join: [email protected]/04f87ad7
Google Chrome Error Logs: VM232 app.bundle.min.js:138 2022-09-17T11:24:37.358Z [conference.js] <Nce._onConferenceFailed>: CONFERENCE FAILED: conference.connectionError.notAllowed
Screenshots:
Additional context
So, I have Mattermost and Jitsi self-hosted instance. both are running as docker container behind Nginx proxy server. Everything is in order, and the Jitsi plugin for Mattermost also functions without JWT. However, it doesn't work when I activate JWT on the Jitsi server and set the app-id and secret appropriately on Mattermost.
The text was updated successfully, but these errors were encountered: