Authorization code flow with refresh token (confidential clients)
Use this flow when: Your application can securely store a Client Secret (server-side applications).
Benefits: Provides both access tokens and refresh tokens for long-term access.
1
Redirect user for authorization
Redirect the user to the authorization endpoint:
Required parameters:
client_id
: Your application's Client IDresponse_type
: Set tocode
redirect_uri
: Pre-registered callback URLscope
: Requested permissions (includeopenid
for OpenID Connect)state
: Random string for CSRF protection (recommended)
Example URL:
2
3
Last updated