What is Authorization code flow?
The authorization code flow is the OAuth 2.0 and OpenID Connect flow in which the user signs in at the provider, the application receives a short-lived one-time code, and its server exchanges that code for tokens.
How it works
Steps: the app redirects the user to the authorization endpoint with its client ID, redirect URI, scopes, state, nonce and PKCE challenge; the user signs in and consents; the provider redirects back with a code; the app exchanges the code at the token endpoint, with the PKCE verifier, for an ID token, an access token and possibly a refresh token.
Tokens never pass through the browser address bar, which makes this flow safer than the old implicit flow.
Authorization code flow in SyAuth
SyAuth uses the authorization code flow with S256 PKCE for every interactive sign-in, through its hosted login page.
Related terms
Free for up to 30,000 registered users
Start on the free plan and upgrade when your project grows.
Last updated