Identity Providers
On this page
An Identity Provider lets users log in to FusionAuth with an account from a third party, such as Google, Okta, or a corporate SAML server. The third party checks the user's credentials. FusionAuth then logs the user in to your application and issues FusionAuth tokens. This approach is often called identity federationAuthentication in which a user logs in through an external Identity Provider..
Users don't create a password in FusionAuth. Your application still integrates with FusionAuth only, so your application code stays the same for every provider.
To set up a provider, see Add an Identity Provider.
How Login Works#
The following diagram shows a login through an Identity Provider on the hosted login pagesThe login, registration, password recovery, and multi-factor authentication pages that FusionAuth serves. A Theme controls the look of the pages.:
Login with an external Identity Provider through the FusionAuth hosted login pages.
The application sends the user to FusionAuth, and the user picks a provider on the FusionAuth login page. The provider authenticates the user and sends the user back to FusionAuth. FusionAuth validates the response. For an OpenID Connect or OAuth provider, FusionAuth exchanges the code for tokens at the provider. FusionAuth then finds or creates the FusionAuth user. Finally, FusionAuth completes a standard OAuth login with the application. The application never talks to the provider.
How FusionAuth Links Users#
FusionAuth stores a linkConnecting a user's account at an external Identity Provider to a FusionAuth User, so both accounts log in as the same User. The Identity Provider's linking strategy decides how FusionAuth matches the accounts. between the user's identity at the provider and a FusionAuth user. On later logins, FusionAuth uses the link to find the same FusionAuth user.
A linking strategy decides how FusionAuth matches a new external identity to a FusionAuth user. For example, FusionAuth can link on a matching email address, or create a new user for every new identity. For the full list, see Linking Strategies.
Integration Options#
You can use an Identity Provider in the following ways:
- On the hosted login pages, FusionAuth shows a button for each provider and handles the redirects. You enable each provider per Application.
- On your own login page, your application calls the provider directly. Your application then sends the provider's code or token to the Complete Login API, and FusionAuth returns the user and tokens. For the API for each provider, see Identity Providers APIs.
The External JWT Identity Provider works only through the API. When your application already has a JWT from a third party, the External JWT Identity Provider exchanges that JWT for a FusionAuth login.
Provider Types#
FusionAuth supports the following types of Identity Providers:
Social
Google, Apple, Facebook, and other consumer and gaming accounts.
Enterprise
Okta, Azure AD, ADFS, and other corporate login systems.
OpenID Connect
Any provider that supports OpenID Connect.
SAML v2
Any provider that supports SAML v2.
External JWT
Any third party that issues a signed JWT.
Add an Identity Provider
Configure a provider and enable the provider for an Application.
Related
Learn about the APIs for creating, retrieving, updating and disabling a Facebook identity provider.
Learn about the APIs for creating, retrieving, updating and disabling a Google identity provider.
Learn about the APIs for creating, retrieving, updating and deleting identity providers.
Learn how users and clients log in with FusionAuth, and how FusionAuth acts as an identity provider for other applications.