[OpenSIPS-Users] Need some help for auth_jwt module .
Sasmita Panda
spanda at 3clogic.com
Fri Jan 29 07:32:04 EST 2021
Hi ,
Any help on this .
The public key which I am configuring in the secret column , opensips is
converting to that BLOB . Why so ?
*DBG:db_mysql:db_mysql_str2val: converting BLOB
[vP7wAX3vvI5zL97-7tIwRE2WJf3hTdCtgHNrzkpdlZW9bMEBdVsF3cePFANPrJkxiMqnCukzLqX3wjBbHaj6rZQtani23maeOCe9wvD6m1vImLW6tkne-5k8lbIRmifo9gdBiLQnG5J_rHZotJbRSNf2GTd5a1O7YpIb53wpBIWcuXU7DdlM-oMUZB6epSKjn2ujl413RyWBBp2WT1cvX9kKo6p2YXrWGF_zHNPJ37D7r5eccZXyEbwpWadI6XKVldhZF24RYX3vU7g1YuytgBY_eNJVwKjYgVoi12VrSo6MgaV7JicsX6d2pykFAmVM3To57O5rYdQHF92CpR7MJQ]*
As the public key is multiline text how will I put this in the table ?
*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
On Fri, Jan 22, 2021 at 1:44 PM Sasmita Panda <spanda at 3clogic.com> wrote:
> 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/20210129/16e66a92/attachment.html>
More information about the Users
mailing list