Configure Authentik SSO

Create an OAuth2/OpenID Connect provider and application in Authentik, then connect the provider to Coolify with a confidential client ID and secret.

Requires Coolify v4.3.0

Authentik SSO will be available in Coolify v4.3.0. The latest released version is v4.1.2, so this guide documents an upcoming feature that is not available in the current release.

Example data

Replace these values while following the guide:

  • Coolify callback: https://coolify.shadowarcanist.com/auth/authentik/callback
  • Authentik Base URL: https://auth.shadowarcanist.com
  • Application name: Coolify

Set up Authentik SSO

Start an Authentik application

Sign in to the Authentik administration interface and open Applications > Applications.

Select Create with Provider, enter a name such as Coolify, and choose a slug. Continue with OAuth2/OpenID Connect as the provider type.

If your Authentik version creates providers separately, open Applications > Providers, create an OAuth2/OpenID Provider, then attach it to a new application.

See Authentik's OAuth2/OpenID provider documentation if the navigation or field names differ in your installed version.

Configure the OAuth2/OpenID provider

Configure the provider as a confidential authorization-code client:

Authentik settingValue
Client typeConfidential
Redirect URIs/OriginsStrict URI https://coolify.shadowarcanist.com/auth/authentik/callback
ScopesInclude openid, profile, and email. Coolify also requests Authentik's goauthentik.io/api scope.
Authorization flowSelect the flow your users should complete.
Signing keyUse the signing key required by your Authentik policy.

Save the provider and application.

Use Authentik policies, groups, or application bindings to restrict who may access the Coolify application.

Save the Authentik credentials

Copy the provider Client ID and Client Secret. Store the secret securely.

The Base URL for Coolify is the Authentik instance origin, such as https://auth.shadowarcanist.com. Do not append /application/o/authorize/ or the application slug.

Configure Authentik in Coolify

Open Settings > OAuth and find Authentik.

Coolify fieldAuthentik value
Client IDAuthentik provider client ID
Client SecretAuthentik provider client secret
Redirect URIhttps://coolify.shadowarcanist.com/auth/authentik/callback
Base URLAuthentik origin, such as https://auth.shadowarcanist.com

Select Save, then turn on Enabled for Authentik.

Verify Authentik sign-in

Open the Coolify login page in a private browser window and select Login with Authentik. Complete the assigned Authentik flow, then confirm that Coolify opens the account matching the Authentik email address.

Also test an Authentik user who is not allowed by the application policy and confirm that Authentik blocks access.

Troubleshooting

On this page