Skip to content

Authentication

This section describes the entire authentication process with the Identity system using the OpenID Connect protocol.

Overview

The system uses the OpenID Connect protocol based on OAuth 2.0 for secure authentication. The authentication flow follows the Authorization Code Flow pattern, which ensures security by not exposing tokens directly in the user's browser.

Authentication Flow

  1. Get credentials - client_id and client_secret
  2. Configure redirect URI
  3. Request authentication - Redirect user to login
  4. Process response - Receive authorization code
  5. Exchange code for tokens - Get id_token and access_token
  6. Validate ID Token - Ensure authenticity and integrity

Main Topics

Security

All tokens are signed and must be validated before use. The client_secret should never be exposed in the frontend and should only be used in server-to-server communication.

Fanbase API Documentation