Skip to content

Security API

The Security API (SSO) provides endpoints for authentication, token retrieval, and authenticated user information retrieval.

📥 Postman Collections for this section

Get Token - Client credentials authentication
Full SSO - OpenID Connect flow

Available Endpoints

Authentication

  • Get Token - Gets access token using client_credentials

User Data

  • UserInfo - Retrieves basic user information (email, full name, and ID)
  • Profile - Gets the complete user profile

URLs

MethodURLActionDescription
POST/api/tokenAuthenticateGets access token using client_credentials
GET/api/userinfoViewRetrieves basic user information
GET/api/profile/{clientId}?identity={identity}ViewGets the complete user profile

Environments

Production:

  • {security-producao} = https://security.fanbase.com.br

Staging:

  • {security-homologacao} = https://security.fantest.com.br

Authentication

Security endpoints use different authentication methods:

  • Get Token: Uses grant_type: client_credentials with client credentials
  • UserInfo and Profile: Require access token obtained through OAuth 2.0 flow

Credentials

To use Security endpoints, you need:

  • client_id: Client ID provided by Fanbase
  • client_secret: Client secret provided by Fanbase

These credentials must be kept secret and never exposed in the frontend.

Fanbase API Documentation