docs/self-hosting/auth/providers/authentik.mdx
Authentik is an open-source Identity Provider focused on flexibility and versatility.
<Steps> ### Create OAuth2 Provider in AuthentikLobeHubConfidential<Callout type={'info'}>
Callback URL Format: https://your-domain.com/api/auth/callback/authentik
</Callout>
The issuer URL is typically: https://your-authentik-domain/application/o/your-app-slug/
When deploying LobeHub, you need to configure the following environment variables:
| Environment Variable | Type | Description |
|---|---|---|
AUTH_SECRET | Required | Key used to encrypt session tokens. Generate using: openssl rand -base64 32 |
AUTH_SSO_PROVIDERS | Required | SSO provider for LobeHub. Use authentik for Authentik |
AUTH_AUTHENTIK_ID | Required | Client ID from Authentik provider |
AUTH_AUTHENTIK_SECRET | Required | Client Secret from Authentik provider |
AUTH_AUTHENTIK_ISSUER | Required | Authentik issuer URL |
<Callout type={'tip'}> Go to 📘 Environment Variables for detailed information on these variables. </Callout> </Steps>
<Callout type={'info'}> After successful deployment, users will be able to authenticate with Authentik and use LobeHub. </Callout>