setup-authentik-sso
Configure Authentik OAuth2/OIDC SSO for an application.
Description
Uses janus_authentik_setup to automate provider creation, then sets required environment variables in Coolify.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
app_name | string | Yes | Display name |
app_slug | string | Yes | URL slug / client ID |
domain | string | Yes | Full domain |
Critical Lessons
- Use
buildRedirectUrl()withNEXT_PUBLIC_APP_URL- NEVERrequest.url - Cookie name MUST match between middleware and oauth lib
- NEXT_PUBLIC_* env vars require rebuild after setting