Scops and token is not included in the access token

Good day all am trying to get the scop in the access token, but the token keep generating without any scops.
I follow the documentation below:

can you help

Hi @Amer,

Welcome to the Auth0 Community!

This can happen when the scope parameter was not included in the login request.

In this situation, you will need to specify the scope parameter in the login request, which should look something like the following:

https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    state={state}

After doing so, the scopes will be included in the Access Token.

Please reach out again if you have any additional questions.

Thanks,
Rueben

:thinking: If you’re wanting to specify scopes for an Access Token then you will typically also need to specify an audience parameter (see here for more details). By default, when no audience has been specified - and no default audience has been configured at the tenant level - then an access token is returned which is intended for the /userinfo endpoint only, and contains only the openid scope (as detailed here).

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.