Skip to content

OAuth/OIDC Authentication

Social login with external providers.

Supported Providers

  • Google
  • GitHub
  • GitLab
  • Microsoft
  • Custom OAuth 2.0 providers

Configure Provider

{
  "provider": "google",
  "client_id": "your-client-id",
  "client_secret": "your-client-secret",
  "redirect_uri": "http://localhost:8000/auth/oauth/google/callback"
}

Login Flow

# 1. Redirect user to OAuth provider
GET /auth/oauth/google/authorize

# 2. User approves on Google
# 3. Google redirects back with code
GET /auth/oauth/google/callback?code=xyz

# 4. USSO exchanges code for user info
# 5. USSO creates/updates user and returns tokens