[OpenSIPS-Users] Need some help for auth_jwt module .

Sasmita Panda spanda at 3clogic.com
Fri Jan 22 08:14:23 EST 2021


Hi ,
First time I am trying to use auth_jwt module with opensips 3.1 .

When I am generating jwt token by using HS256 algorithm and adding the
corresponding tag and key in opensips DB then opensips is able to decode
the token successfully .

When I am generating the token by using RS256 algorithm  and both private
and public key in the corresponding to the token in the db then opensips is
not able to decode the token using that key .

 DBG:auth_jwt:jwt_authorize: Found 2 record for tag 1234567890
 DBG:auth_jwt:jwt_authorize: Failed to decode jwt with DB secret
 DBG:auth_jwt:jwt_authorize: Failed to decode jwt with DB secret

for both the secrets this is the error I am getting . How will I do this ?
What should I add in secret column corresponding to the token ?


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210122/cce93b78/attachment.html>


More information about the Users mailing list