Hybrid Flow
Hybrid Flow is an OpenID Connect sign-in method that blends features of two other flows so an application can receive some information immediately from the login server while still securely retrieving the rest through a follow-up exchange. In practice, this lets an app get an initial token right away and then obtain additional tokens in a more protected way.
Hybrid Flow is an OpenID Connect Core 1.0 authentication flow, built on OAuth 2.0, in which the Authorization Endpoint returns an Authorization Code together with one or more tokens (for example an ID Token and/or Access Token, depending on the requested response_type such as code id_token, code token, or code id_token token). It combines characteristics of the Authorization Code Flow and the (now discouraged) Implicit Flow: the client may receive an ID Token directly from the Authorization Endpoint for immediate use, while the returned Authorization Code is subsequently redeemed at the Token Endpoint for tokens (which, depending on configuration, may include Access Tokens and Refresh Tokens). Because OIDC layers authentication on top of OAuth 2.0's delegated authorization, the ID Token conveys the authentication result while any Access Token governs authorization to resources. Note that any tokens delivered via the Authorization Endpoint are exposed in front-channel responses and must be validated per OIDC Core; exact token types and security properties vary by response_type, profile, and vendor deployment.
Why it matters
Hybrid Flow addresses a specific architectural need: some applications require an authentication result immediately at the point of redirect while still needing to obtain longer-lived or more sensitive tokens through a back-channel exchange. By returning an ID Token directly from the Authorization Endpoint, a client can begin establishing a user session or rendering personalized content without waiting for a separate Token Endpoint round trip, while the accompanying Authorization Code preserves a more protected path for retrieving Access Tokens and, depending on configuration, Refresh Tokens.
The trade-off is that any token delivered through the Authorization Endpoint travels in a front-channel response, meaning it is exposed to the browser and potentially to intermediaries such as the user agent, browser history, or referrer headers. This is the same exposure characteristic that led the Implicit Flow to fall out of favor, and it is why tokens returned via the front channel must be validated according to OIDC Core rather than trusted implicitly. Teams adopting Hybrid Flow should weigh whether the immediate availability of an ID Token justifies the additional handling and validation burden, since the security properties vary by the requested response_type, the applicable profile, and the specific vendor deployment.
Because OpenID Connect layers authentication on top of OAuth 2.0's delegated authorization framework, Hybrid Flow keeps these concerns distinct: the ID Token conveys the authentication result, while any Access Token governs authorization to resources. Confusing the two, for example, treating an Access Token as proof of who the user is, remains a recurring source of implementation error, and Hybrid Flow's simultaneous delivery of multiple token types makes disciplined validation of each token especially important.
Who it's relevant to
Inside Hybrid Flow
Common questions
Answers to the questions practitioners most commonly ask about Hybrid Flow.
