Log in to authentik with external identity providers
Configuring authentik with an external identity provider, also called a federated identity provider, lets users log in to authentik with an account that they already have, such as a social login or an enterprise identity provider account. For example, users can log in to authentik with their Entra ID or Google Workspace account.
External identity providers are configured in authentik as sources. To let users log in to other applications with their authentik credentials, use a provider instead.
Typically, identity providers use protocols such as OAuth 2.0 or Security Assertion Markup Language (SAML). These protocols allow authentik to act as a service provider (SP), delegating the authentication process to the identity provider (IdP). The choice of protocol depends on what the identity provider supports and the level of integration desired.
How it works
The following diagram shows a typical login with an external identity provider:
SAML identity providers can also start the login themselves, for example from an app portal. For details, see SP-initiated and IdP-initiated login.
When a user comes back from the identity provider, authentik does one of the following:
- Log in: if the user has logged in through this source before, authentik runs the source's Authentication flow.
- Enroll: if authentik doesn't know the user yet, it runs the source's Enrollment flow, which typically creates the user and logs them in. If the source has no enrollment flow, new users can't enroll through it.
- Link: a user who is already logged in to authentik can connect the source to their account under Connected services.
The source's User matching mode decides what happens when a new user from the source has the same email address or username as an existing authentik user: authentik can link the two accounts, or deny enrollment. Linking by email address is only safe if the identity provider verifies email addresses, and linking by username is only safe if no other source can create users with the same username.
To send users to an OAuth or SAML source partway through another flow, use the Enterprise Source stage.
Configure authentik
While we provide detailed guides for popular services such as Google, GitHub, and Microsoft Entra ID, you can configure any standards-compliant identity provider using the same basic process.
authentik supports most identity providers that implement standard OAuth 2.0 or SAML 2.0 protocols. While each identity provider has its own administrative interface, the core information needed is consistent, typically OAuth client credentials or SAML metadata. For an identity provider without a dedicated guide, use the generic OAuth source or SAML source.
Our service-specific guides walk you through any unique steps needed for each service.