-
I'm playing around with creating clients with oauth2 scopes. I expected the scopes that you specify when creating a client would be present when generating the access token. However this is not the case. I created the client as follows:
Generate the access token as follows:
When I introspect the opague token, the scope is missing.
When creating the access token with scopes passed along, scopes are present as expected.
Is this by design? Or should I open an issue ticket? Thx! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Your client will include which scopes are allowed. You need to include the scopes you want when you do your client credentials flow, which then of course needs to be from the list of allowed ones. |
Beta Was this translation helpful? Give feedback.
-
So this is different from the scopes/permissions in auth0 machine to machine applications? There the scopes granted when creating machine to machine applications are present even without specifying them when creating the token. |
Beta Was this translation helpful? Give feedback.
-
You can change this behavior using a config flag - check the bottom section of https://www.ory.sh/hydra/docs/guides/migrating-from-mitreid/ :) |
Beta Was this translation helpful? Give feedback.
You can change this behavior using a config flag - check the bottom section of https://www.ory.sh/hydra/docs/guides/migrating-from-mitreid/ :)