Applications that are able to securely store Client Credentials may benefit from the use of the Hybrid Flow (defined in the OpenID Connect specification, section 3.3). The Hybrid flow allows your application to have immediate access to an while ensuring secure and safe retrieval of and . This can be useful in situations where your application needs to immediately access information about the user, but must perform some processing before gaining access to protected resources for an extended period of time.Documentation Index
Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
How it works
The Hybrid Flow combines steps from the Implicit Flow with Form Post and Authorization Code Flow:- User selects Login within application.
- Application redirects user to Auth0 Authorization Server (
/authorizeendpoint), passing alongresponse_typeparameter indicating type of requested credential (ID token and authorization code), andresponse_modeparameter ofform_postto ensure security. - Auth0 Authorization Server redirects user to login and authorization prompt.
- User authenticates using one of the configured login options, and may see a consent prompt listing the permissions Auth0 will give to the application.
- Auth0 Authorization Server redirects user back to application with single-use authorizationĀ code, and ID token, access token, or both, depending on provided
response_type. - Application sendsĀ authorization code, applicationās client ID, and applicationās credentials, such as Client Secret or Private Key JWT, to Auth0 Authorization Server (
/oauth/tokenendpoint). - Auth0 Authorization Server verifies authorization code, applicationās client ID, and applicationās credentials.
- Auth0 Authorization Server responds with second ID token and access token (and optionally, a refresh token).
- Application can use second access token to call an API to access information about user.
- API responds with requested data.
If your application only needs to use Hybrid Flow for sign-on, you will not need a Refresh Token or an Access Token, only an ID Token with claims.