docs/self-hosting/auth/providers/cloudflare-zero-trust.mdx
Cloudflare Zero Trust provides secure access to your applications without a VPN.
<Steps> ### Create Access ApplicationLobeHub<Callout type={'info'}>
Callback URL Format: https://your-domain.com/api/auth/callback/cloudflare-zero-trust
</Callout>
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 cloudflare-zero-trust |
AUTH_CLOUDFLARE_ZERO_TRUST_ID | Required | Client ID from Cloudflare Access |
AUTH_CLOUDFLARE_ZERO_TRUST_SECRET | Required | Client Secret from Cloudflare Access |
AUTH_CLOUDFLARE_ZERO_TRUST_ISSUER | Required | Issuer URL (e.g., https://your-team.cloudflareaccess.com) |
<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 Cloudflare Zero Trust and use LobeHub. </Callout>