docs/self-hosting/auth/providers/zitadel.mdx
ZITADEL is an open-source identity infrastructure with built-in multi-tenancy.
<Steps> ### Create Application in ZITADELLobeHubCODE (for confidential clients)<Callout type={'info'}>
Callback URL Format: https://your-domain.com/api/auth/callback/zitadel
</Callout>
The issuer URL is your ZITADEL instance URL, typically:
https://your-instance.zitadel.cloudhttps://your-zitadel-domainWhen 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 zitadel for ZITADEL |
AUTH_ZITADEL_ID | Required | Client ID from ZITADEL application |
AUTH_ZITADEL_SECRET | Required | Client Secret from ZITADEL application |
AUTH_ZITADEL_ISSUER | Required | ZITADEL issuer URL (e.g., https://your-instance.zitadel.cloud) |
<Callout type={'info'}> Alternative Environment Variables: For backward compatibility, the following aliases are also supported:
- `ZITADEL_CLIENT_ID` / `ZITADEL_CLIENT_SECRET` / `ZITADEL_ISSUER`
<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 ZITADEL and use LobeHub. </Callout>