docs/self-hosting/auth/providers/cognito.mdx
In the App integration section:
email, openid, and profileIn the app client settings, add the callback URL:
<Callout type={'info'}> Callback URL format:
- Local development: `http://localhost:3210/api/auth/callback/cognito`
- Production: `https://your-domain.com/api/auth/callback/cognito`
your-app-name) or custom domainyour-app-name.auth.us-east-1.amazoncognito.com)Collect the following:
us-east-1_XXXXXXXXX)us-east-1)| Environment Variable | Type | Description |
|---|---|---|
AUTH_SECRET | Required | Session encryption key, generate with openssl rand -base64 32 |
AUTH_SSO_PROVIDERS | Required | Set to cognito |
AUTH_COGNITO_ID | Required | App Client ID |
AUTH_COGNITO_SECRET | Required | App Client Secret |
AUTH_COGNITO_DOMAIN | Required | Cognito domain (e.g., your-app.auth.us-east-1.amazoncognito.com) |
AUTH_COGNITO_REGION | Required | AWS Region (e.g., us-east-1) |
AUTH_COGNITO_USERPOOL_ID | Required | User Pool ID (e.g., us-east-1_XXXXXXXXX) |
<Callout type={'tip'}> Go to 📘 Environment Variables for detailed information. </Callout> </Steps>
<Callout type={'info'}> After successful deployment, users will be able to authenticate with AWS Cognito and use LobeHub. </Callout>