- 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_color
is no longer a valid scope value.- The
device
parameter is removed. - The
audience
parameter 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
/userinfo
endpoint. - A refresh token will be returned only if a
device
parameter was passed and theoffline_access
scope was requested.
OIDC-conformant
- The returned access token is valid for optionally calling the API specified in the
audience
parameter and the/userinfo
endpoint (provided that the API usesRS256
as the signing algorithm andopenid
is used as ascope
parameter). If you are not implementing your own (API), then you can usehttps://{$account.namespace}/userinfo
as theaudience
parameter, which will return an opaque Access Token. - A refresh token will be returned only if the
offline_access
scope 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.