Skip to content

modify header claims #240

Answered by oxisto
alzrck asked this question in Q&A
Sep 15, 2022 · 5 comments · 1 reply
Discussion options

You must be logged in to vote

You can just use jwt.NewWithClaims to retrieve a Token object and just modify the Header of it before signing it with SignedString.

You can see an example here https://github.com/oxisto/oauth2go/blob/b135c891f36ea062cb72a9f8d34a7900e0bf3783/server_test.go#L61-L66

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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 oxisto
Comment options

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

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 #238 on September 15, 2022 20:55.