Add an Identity Provider (IdP)

On this page

Identity Providers let users log in to FusionAuth through a third party. FusionAuth supports social Identity Providers, such as Facebook and Google, and enterprise Identity Providers, such as OpenID Connect and SAML v2.

To manage Identity Providers in the Admin UI, navigate to Settings -> Identity Providers . To manage Identity Providers through the API, see the Identity Providers API.

Add an Identity Provider#

To enable an Identity Provider for an Application or CIMD domain:

  1. In the Admin UI, navigate to Settings -> Identity Providers .

  2. Click the arrow next to the add button, and select your Identity Provider.

  3. Select the Tenant for the Identity Provider, or select Global identity provider. You can't change the scope later. For more information, see Identity Provider Scope.

  4. Fill out the form. Your identity provider supplies most of the values. For a description of each field, see the guide for your Identity Provider.

  5. On the Applications tab, turn on Enabled for each Application or CIMD domain that uses the Identity Provider.

  6. To register new users for the Application with the Application's default roles, turn on Create registration. When Create registration is off, a user needs a registration for the Application before the user can log in through the Identity Provider.

  7. Click .

The login page of each enabled Application then shows a login button for the Identity Provider. An Identity Provider with managed domains asks for the user's email address instead of showing a button.

The add menu on the Identity Providers page, with every Identity Provider type.
The add menu on the Identity Providers page, with every Identity Provider type.

Social Identity Providers#

FusionAuth supports the following social Identity Providers:

Enterprise Identity Providers#

FusionAuth supports the following enterprise Identity Providers:

To request an Identity Provider that FusionAuth doesn't support, search the open feature requests on GitHub. Vote or comment on an existing request, or open a new request.

Account Security#

When you configure an Identity Provider, you trust the Identity Provider to authenticate users. The Identity Provider controls MFA requirements and configuration, roles and groups, email and phone verification, and account identifiers.

Caution

Limit who can set up an Identity Provider. Your security is only as strong as the security of the platform that you federate to.

A malicious Identity Provider can harm your system. For example, a malicious Identity Provider can create accounts with email addresses that already exist in FusionAuth. A malicious user can then log in to the Identity Provider, return to FusionAuth, and access user data. The result is an account takeover.

To reduce the risk, consider the following strategies:

  • Don't set up the Identity Provider.
  • Enable the Identity Provider only for the Applications or Tenants that need the Identity Provider.
  • Use a reconcile lambda to check that the email address or identifier from the Identity Provider is one you expect.
  • Use the Disabled linking strategy, and manage links with the Link API. Your business logic then runs before or during linking. For example, your code can refuse links for a certain domain, or call another API to validate a link first.
  • Use the Login Validation lambda to block a login.

OAuth Scope Parameter#

To request OAuth scopes on the FusionAuth access token, put the scopes in the scope parameter of the authorization request to FusionAuth.

The Scope field of the Identity Provider, when the Identity Provider has one, sets the scope parameter of the request to the Identity Provider.

Limitations#

Some Identity Providers, such as the Google and OIDC Identity Providers, request access tokens from a configured remote URL. Remote servers must respond within a certain time frame or the login workflow will fail. The limit is currently 10 seconds. It is not configurable.

Managed domains work on the login page only with the OIDC and SAML v2 Identity Providers. The External JWT Identity Provider uses managed domains to check JWTs in the Reconcile API.

FusionAuth's hosted login pages only support a single Google identity provider configuration using Google's GSI client at a time, which provides a more modern experience and One Tap support. See Google identity provider limitations for more information.