docs/self-hosting/auth/providers/okta.mdx
Okta is a leading identity and access management platform.
<Steps> ### Create Application in OktaLobeHub<Callout type={'info'}>
Callback URL Format: https://your-domain.com/api/auth/callback/okta
</Callout>
The issuer URL is typically: https://your-okta-domain.okta.com
For custom authorization servers: https://your-okta-domain.okta.com/oauth2/default
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 okta for Okta |
AUTH_OKTA_ID | Required | Client ID from Okta application |
AUTH_OKTA_SECRET | Required | Client Secret from Okta application |
AUTH_OKTA_ISSUER | Required | Okta issuer URL (e.g., https://your-okta-domain.okta.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 Okta and use LobeHub. </Callout>