Skip to content

How to set the scopes in the payload of a jwt access_token in oauth2? #3430

Answered by sezanzeb
sezanzeb asked this question in Q&A
Discussion options

You must be logged in to vote

this is how it works with the cli:

  1. set
oauth2:
    client_credentials:
        default_grant_allowed_scope: true

in hydras config so that the client scopes are always included in the jwt payload,

  1. Use --scope in hydra create client or hydra update client

  2. Check .scp of the payload, which is an array of strings, instead of .scope

also see #2809

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sezanzeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant