Outline SSO with Keycloak (OIDC)
Enable OIDC discovery on self-hosted Outline without treating realm membership as collection authorization.
Last updated
On this page (5)
Outline · Keycloak · OIDC
Before you start
- Self-hosted Outline release with OIDC and an existing recovery admin.
- Keycloak realm/client administrator.
- Review of Outline’s licence for the intended hosting model.
Configure sign-in
- Register a confidential authorization-code client in Keycloak with the precise Outline /auth/oidc.callback URL on the public origin.
- Set OIDC_ISSUER_URL to the Keycloak realm issuer and set OIDC_CLIENT_ID and OIDC_CLIENT_SECRET; request openid, profile and email as needed.
- Inspect the issuer, subject and profile claims for existing users and test actual account-linking behavior before enabling production login. Assign Outline user roles and collection access separately.
Verify the result
- Test an existing author and a new pilot; verify document ownership, private collections and default permissions. Do not infer group provisioning from a Keycloak token claim.
- Test if Outline logout leaves a live Keycloak browser session, and measure how disabling a Keycloak account affects existing Outline sessions.
