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
- Create an Authentik confidential OAuth2/OpenID provider, bind it to an application and register the public /oauth/openid/callback redirect.
- 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.
- 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.
