Skip to content
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

JWT Invalid signature #76

Open
oussamabenkemchi opened this issue Apr 21, 2022 · 1 comment
Open

JWT Invalid signature #76

oussamabenkemchi opened this issue Apr 21, 2022 · 1 comment

Comments

@oussamabenkemchi
Copy link

Hi,
I'm trying to implement the jwt authorization, but I'm always getting the error message at the token verification (Signature invalid').
How am I supposed to implement the authorization system since there is no doc available?
my technique is to add the appropriate environment variables (RTSP_STREAM_AUTH_JWT_ENABLED=ture | RTPS_STREAM_AUTH_JWT_SECRET="something"), change the config file .yml, and then send the token ="Bearer token" in the request header.
NB;token generated by jsonwebtoken library via hmac algorithm.
thanks.

@oussamabenkemchi oussamabenkemchi changed the title JWT Invalid token JWT Invalid signature Apr 21, 2022
@fuad00
Copy link

fuad00 commented Jun 23, 2022

Looks like there is a bug with RTSP_STREAM_AUTH_JWT_SECRET variable. It's just not applying, so correct key fallbacks to 'macilaci'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants