User Login & SSO

OpenID Connect - Hybrid Flow

Flow in which the authorization server returns an authorization code and an ID token through the browser, so the client can authenticate the user immediately and then redeem the code on the back channel for access and refresh tokens.

Deprecated

The Hybrid flow combines the Implicit and Authorization Code flows. The authorization server returns an authorization code together with an ID token (response_type=code id_token) through the user's browser. The application can validate the ID token and authenticate the user right away, while the code is redeemed on the back channel for the access token and refresh token, which never pass through the browser.

The ID token carries a c_hash claim, a hash of the authorization code, which binds the two together and lets the application detect a substituted code.

Note: Similar to the Implicit flow, modern guidance recommends Authorization Code with PKCE instead of the Hybryd flow.

This diagram shows the Hybrid flow with Form Post response mode.

OpenID ProviderClient AppBrowserUserOpenID ProviderClient AppBrowserUserClick "Login"1GET /login2302 to IdP3GET /authorize4Login5Credentials6Consent prompt7Scope approval8Form POST response9POST to redirect_uri10Validate ID token11POST /oauth/token12Access token + ID token13Set authenticated session14