Skip to main content

OIDC Integration

FastGateway supports OIDC authentication for browser-based applications. OIDC is only available in General mode.

OIDC Settings

SettingDescription
providerOIDC provider discovery URL
clientIDOAuth client ID
clientSecretOAuth client secret
scopesOAuth scopes to request
cookieDomainDomain for session cookies

Configuration Example

securityMode: "general"
oidcAuth:
provider: "https://auth.example.com"
clientID: "your-client-id"
clientSecret: "your-client-secret"
scopes:
- "openid"
- "profile"
- "email"
cookieDomain: ".example.com"

Supported Providers

ProviderDiscovery URL Format
Auth0https://your-tenant.auth0.com
Oktahttps://your-org.okta.com
Azure ADhttps://login.microsoftonline.com/{tenant}/v2.0
Googlehttps://accounts.google.com
Keycloakhttps://keycloak.example.com/realms/{realm}

Auth0 Example

oidcAuth:
provider: "https://myapp.auth0.com"
clientID: "abc123"
clientSecret: "secret-from-auth0"
scopes:
- "openid"
- "profile"
cookieDomain: ".myapp.com"

Important Notes

  • OIDC is only available in General mode (not Client mode)
  • Requires browser-based flow (redirects for authentication)
  • Session state is managed via cookies
  • Configure callback URLs in your OIDC provider