Explore documentation
Authentik SSO
Learn how to connect your Authentik app with Better Stack to enable single sign-on (SSO) for you and your colleagues.
SSO setup
- Go to Single Sign-On configuration.
- Click Connect on the Generic SAML SSO panel and select Authentik.
- Note the Entity ID and ACS URL. You will need them in a moment.
In Authentik
- Sign in to your Authentik administration.
- In the left menu, go to Customization -> Property Mappings.
- Click Create, select SAML Property Mapping, and enter the following:
- Name:
email - SAML Attribute Name:
email - Expression:
return request.user.email
- Name:
- Click Finish.
- In the left menu, go to Applications -> Providers.
- Click Create, select SAML Provider, and enter the following:
- Name: The Entity ID from Better Stack.
- Authentication flow: Select the default authentication flow.
- Authorization flow: Select the default provider authorization flow.
- ACS URL: The ACS URL from Better Stack.
- Issuer:
betterstack - Service Provider Binding: Redirect
- Open Advanced protocol settings:
- For Signing Certificate, select
authentik Self-signed Certificate. - In Property mappings, select the
emailmapping you just created.
- For Signing Certificate, select
- Click Finish.
- In the left menu, go to Applications -> Applications.
- Click Create and enter the following:
- Name:
Better Stack - Slug:
better-stack - Provider: Select the provider you just created.
- Name:
- Click Create.
- In the left menu, go to Applications -> Providers and click on your newly created provider.
- Copy the SSO URL (Redirect).
- Go to the Metadata tab and copy the content of the
<ds:X509Certificate>element.
In Better Stack
- Paste the SSO URL (Redirect) into the Identity Provider Single Sign-On URL field.
- Paste the certificate content into the X.509 Certificate field.
- Click Connect. You will be redirected to Authentik to sign in.
You're done. Your Authentik Single Sign-On is now configured.