Skip to content

How do I verify a DPoP token? #99

Answered by panva
matthieubosquet asked this question in Q&A
Discussion options

You must be logged in to vote

Are there particular reasons for the absence DPoP validation profile (something like JWT.DPoPToken.verify)?

Too early for DPoP to be considered stable, but all the affordances to be able to do that are already present. Most importantly - a way to verify a key knowing it should be using an embedded public JWK in the JWS header and getting the key's thumbprint

What might be the best way to verify DPoP tokens?

const { payload, key } = jose.JWT.verify(token, jose.JWK.EmbeddedJWK, {
  typ: 'dpop+jwt',
  algorithms: [/* your acceptable algorithms here */],
  complete: true, // to have the embedded public key returned
  maxTokenAge: '60s', // to have the iat and its value not being in the fu…

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by matthieubosquet
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
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@matthieubosquet
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
2 participants
Converted from issue

This discussion was converted from issue #99 on December 15, 2020 16:03.