Explore documentation
Authentik SSO
In this guide, you're going to learn how to connect your Authentik app with Better Stack to enable single sign-on (SSO) for you and your colleagues.
SSO set-up walkthrough
- Start the SSO set-up by going to Single Sign-On configuration. Note that only organization admins have access to these settings. 
- On this page click Connect on Generic SAML SSO panel. 
- Select Authentik from the list of supported providers. 
- Take note of the value in the Entity ID field, we're going to need this in a second. 
We're going to switch to the Authentik administration now.
- Sign in to your Authentik administration. 
- In left menu select Customization -> Property Mappings. 
- Click Create, select SAML Property Mapping and fill in these values: - Name: email
- SAML Attribute Name: email
- Expression: return request.user.email and click Finish.
 
- In left menu select Applications -> Providers. 
- Click Create, select SAML Provider and fill in this data: - Name: Entity ID from configuration page in Better Stack
- Authentication flow: select the first one (default-authentication-flow)
- Authorization flow: select the first one (default-provider-authorization-explicit-consent)
- ACS URL: ACS URL from configuration page in 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 newly created email mapping
 
- Click Finish 
- In left menu select Applications -> Applications. 
- Click Create and fill in this data: - Name: Better Stack
- Slug: better-stack
- Provider: select the newly created provider
 
- Click Create 
- In left menu go to Applications -> Providers and click on newly created provider. 
- Copy SSO URL (Redirect) and paste it to Identity Provider Single Sign-On URL field in Better Stack configuration. 
- At the top of the page switch to Metadata tab, 
- Copy the content of <ds:X509Certificate> element and paste it to X.509 Certificate field in Better Stack configuration. 
- Click on Connect in Better Stack configuration - you will be redirected to the Authentik Sign on page. Sign in with the account you assigned to the Better Stack application, please. 
Tada! Your Authentik Single Sign-On is now configured.