Skip to content

JWT settings not working #2947

Closed Answered by PhamMinhNgoc
vd2org asked this question in Q&A
Jun 14, 2020 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

in your case, you can use multi scret key and alg (hmac or rsa):
hmac: foo= aGVsbG8=
hmac:bar= aGVsbG8y

and in jwt token, you need set kid attribute"kid":"foo" or "kid":"bar" on header token for using hmac secret key for the corresponding .
example:
token header:

"alg":"HS256"
"kid": "foo"
token payload:
{
"iat": 1592134925,
"exp": 1595134925,
"sub": "replace with your username in your database"
}

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ronnievsmith
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by janl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2947 on June 22, 2020 13:12.