Skip to Content
OpenFlare
GuidesDeploymentReferenceArchitectureChangelog

SSO Login Configuration

Integrate third-party identity providers such as Google, Keycloak, authentik, Logto, or Casdoor via standard OIDC Discovery.

1. Prerequisites

ItemRequirement
Server access URLConfigured in Admin > System settings > System > General; must match the exact scheme, host, and port visited by users
Auth source nameUnique identifier (such as company-oidc) starting with an alphanumeric character using letters, digits, -, or _
Client ID / SecretApplication credentials issued by your OIDC provider
OIDC Discovery URLMetadata endpoint typically ending in /.well-known/openid-configuration

All auth sources share one callback URL (Redirect URI) without appending the source name:

<server access URL>/login

2. Configure an OIDC Auth Source

  1. Create a Web / Confidential client in your provider with Redirect URI <server access URL>/login.
  2. Open Admin > System settings > Security > Auth Source Management, click Add auth source, and select OIDC.
  3. Fill in Name, Display Name, Client ID, Client Secret, Discovery URL, and Scope (default openid profile email), then save and enable (leave Secret blank when editing to preserve).

3. Account Binding & Troubleshooting

ScenarioBehavior
External identity boundSigns straight into the linked local account
Signed-in user authorizesBinds external identity to the active local account
Unbound & registration openAuto-provisions a standard user and binds it
Unbound & registration closedPrompts for local credentials to bind once

Identities bind by auth_source + sub, preserving links across upgrades.

SymptomFix
invalid_scopeAlign Scope on the auth source or permit openid profile email in your provider
Redirect URI mismatchVerify exact scheme, host, port, and /login path against <server access URL>/login
Error on callback redirectCheck POST /api/v1/oauth/callback in DevTools and restart login from /login rather than refreshing
Provider button missingConfirm Allow OIDC login is enabled under Security and the source is active with saved credentials
Client Secret hiddenExpected behavior; plaintext secrets are never returned after saving

On this page