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

  1. Register a confidential authorization-code client in Keycloak with the precise Outline /auth/oidc.callback URL on the public origin.
  2. 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.
  3. 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.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Outline with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.