rtsp-stream icon indicating copy to clipboard operation
rtsp-stream copied to clipboard

JWT Invalid signature

Open oussamabenkemchi opened this issue 3 years ago • 1 comments

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 avatar Apr 21 '22 09:04 oussamabenkemchi

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

fuad00 avatar Jun 23 '22 13:06 fuad00