LibreChat SSO with Authentik (OIDC)

Configure Authentik as the LibreChat OpenID provider with explicit public client and server URLs.

Last updated

On this page (5)

LibreChat · Authentik · OIDC

Before you start

  • LibreChat configuration access.
  • Authentik app/provider administrator.

Configure sign-in

  1. Create an Authentik confidential OAuth2/OpenID provider, bind it to an application and register the public /oauth/openid/callback redirect.
  2. Configure OPENID_ISSUER with the Authentik discovery URL from the LibreChat guide and set client credentials, a random OPENID_SESSION_SECRET, callback path and scopes.
  3. Set DOMAIN_SERVER and DOMAIN_CLIENT correctly behind the reverse proxy; enable social login and restart LibreChat.

Verify the result

  • Confirm login and post-login redirects use the public domain.
  • Test an Authentik application-policy denial and the intended logout behavior.

Official documentation

Have Pilae connect your identity provider

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