- Authentication request
- Authentication response
- Code exchange request
- Code exchange response
- structure
- structure
Authentication request
Legacy
device parameter is only needed if requesting a by passing the offline_access scope. To learn more, read, Refresh Tokens.
OIDC-conformant
favorite_coloris no longer a valid scope value.- The
deviceparameter is removed. - The
audienceparameter is optional.
Authentication response
The response from Auth0 is identical in both pipelines:Code exchange request - Authorization Code flow
An authorization code can be exchanged in the same way in both pipelines:Code exchange request - Authorization Code flow with PKCE
An authorization code can be exchanged in the same way in both pipelines:Code exchange response
Legacy
- The returned Access Token is only valid for calling the
/userinfoendpoint. - A refresh token will be returned only if a
deviceparameter was passed and theoffline_accessscope was requested.
OIDC-conformant
- The returned access token is valid for optionally calling the API specified in the
audienceparameter and the/userinfoendpoint (provided that the API usesRS256as the signing algorithm andopenidis used as ascopeparameter). If you are not implementing your own (API), then you can usehttps://{$account.namespace}/userinfoas theaudienceparameter, which will return an opaque Access Token. - A refresh token will be returned only if the
offline_accessscope was granted.
ID token structure
Legacy
JSON
OIDC-conformant
JSON
favorite_color claim must be added through an Auth0 Action. To learn more, read Create Custom Claims.
Access token structure (optional)
Legacy
HTTP
/userinfo endpoint.
OIDC-conformant
JSON
audience parameter and the /userinfo endpoint (provided that the API uses RS256 as the and openid is used as a scope parameter).
If you are not implementing your own resource server (API), then you can use https://{$account.namespace}/userinfo as the audience parameter, which will return an opaque access token.