Skip to main content

Key concepts

authentik is an identity provider (IdP). It stores or imports your users and logs them in to your applications. It can also provision users into other systems, put a login in front of applications that don't support single sign-on, and give users browser-based remote access to machines. This page introduces the main building blocks of authentik and how they fit together.

Building blocks​

  • Application: a piece of software that users access through authentik, such as Grafana or Nextcloud. Its bindings control who can access it, and its settings control how it appears on the Application Dashboard. Each application has at most one main provider.
  • Provider: connects authentik to an application, to log users in to it or to provision users into it.
  • Source: brings users into authentik from an external system, such as Google, Entra ID, or an LDAP directory.
  • Flow: a sequence of stages that defines a process, such as authentication, enrollment, authorization, or account recovery.
  • Stage: a single step within a flow, such as asking for a username, a password, or a multi-factor authentication code.
  • Policy: a reusable check that controls, for example, whether a user can access an application or whether a stage runs.
  • Binding: connects one object to another and sets the order in which they're evaluated. For example, a stage binding adds a stage to a flow, and a policy binding attaches a policy, user, or group to an application, flow, or source.
  • User and group: the accounts that log in through authentik, and the collections you organize them into. Users can be local to authentik or come from a source. Groups are commonly used to control access to applications and to pass memberships to applications.
  • Property mapping: controls which data moves between authentik and other systems. Provider property mappings decide what authentik sends to an application, such as a user's groups in a SAML attribute. Source property mappings decide how authentik stores the data that a source sends.
  • Outpost: a separately deployed authentik component that runs the LDAP, Proxy, RADIUS, and RAC providers.
  • Brand: sets the look and the default flows for a domain. One authentik instance can serve several brands, each with its own logo, title, and login flow.

Sources and providers​

authentik connects to other systems in two directions:

  • A source brings users into authentik. With a source, users log in to authentik with an account they already have at an external identity provider, such as Google, GitHub, or Entra ID. A source can also import users and groups from a directory, such as LDAP or Active Directory, or receive them from another system over SCIM. Here, authentik trusts the external system.
  • A provider connects authentik to an application. With a provider, users log in to the application with authentik, through a protocol such as OAuth2/OIDC, SAML, or LDAP, or through a proxy. Some providers, such as SCIM, provision users and groups from authentik into the application instead. Here, the application trusts authentik.

Users don't need a source. They can also have a local authentik account.

You can combine any source with any provider. For example, some users might log in to authentik with their Entra ID account and then open Salesforce through a SAML provider, while others log in with a local authentik account and use Nextcloud through an LDAP provider.

Example: logging in to an application​

The following example follows one user who opens Grafana and logs in with their Entra ID account. An administrator has already configured the following in authentik:

  • A Grafana application, connected to authentik through an OAuth2/OIDC provider.
  • An Entra ID source, shown on the authentik login page.
  • A binding on the Grafana application that only allows members of the Grafana users group.

When the user opens Grafana:

  1. Grafana sends the user to authentik through the OAuth2/OIDC provider.
  2. The user isn't logged in to authentik yet, so authentik shows its login page. The login page is a flow, and each screen in it is a stage. In the first stage, the user selects the Entra ID source.
  3. The user logs in at Entra ID, which sends them back to authentik. authentik runs the source's authentication flow, or its enrollment flow if the user is new to authentik, and now knows who the user is.
  4. authentik checks the bindings on the Grafana application. The user is a member of the Grafana users group, so they pass.
  5. authentik runs the provider's authorization flow, which can add steps such as asking the user for consent.
  6. authentik sends the user back to Grafana, logged in, with the user data that the provider's property mappings select, such as their name, email address, and groups.