# SAML v2 Identity Provider Settings

Reference for the form fields and Integration Details of the SAML v2 and SAML v2 IdP Initiated Identity Providers.

> For the index of this section of the site, see [llms.txt](https://fusionauth.io/docs/llms.txt)

For the steps to add a SAML v2 Identity Provider, see [Add an External SAML v2 IdP](https://fusionauth.io/docs/authentication/identity-providers/overview-samlv2.md). For the steps to add a SAML v2 IdP Initiated Identity Provider, see [Add a SAML v2 IdP-Initiated IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/samlv2-idp-initiated.md).

The SAML v2 IdP Initiated form has a subset of the fields on the SAML v2 form. A field that appears on only one form says so in the description.

## Form Fields

![The form to configure a SAML v2 Identity Provider in the Admin UI.](https://fusionauth.io/img/docs/screenshots/idp-samlv2-configuration.png)

`Enabled`

*   Optional

Whether this Identity Provider is enabled. When you disable the Identity Provider, FusionAuth disables the Identity Provider globally.

`Id`

*   Optional

An optional UUID. When you leave out the Id, FusionAuth generates a unique Id.

`Source`

*   Optional
*   Defaults to `System`
*   Available since `1.65.0`

The source of this Identity Provider.

FusionAuth sets the source only when you create the Identity Provider. FusionAuth ignores a new value on update and keeps the existing value.

The maximum length is `191` characters.

`Tenant`

*   Optional
*   Available since `1.62.0`

The Tenant that this Identity Provider belongs to. The field appears only when you select a specific Tenant on the previous page. When you select `Global identity provider` on the previous page, the field doesn't appear.

`Name`

*   Required

A unique name for the Identity Provider. FusionAuth uses the name for display only, and you can change the name later.

`IdP endpoint`

*   Optional

The URL of the login page of the SAML Identity Provider.

Only the SAML v2 form shows the field, and the SAML v2 form requires the field.

`NameID format`

*   Optional
*   Available since `1.28.0`

The [NameID](https://fusionauth.io/docs/authentication/act-as-an-idp/host-saml-idp.md) format to send to the SAML v2 Identity Provider in the AuthN request.

Only the SAML v2 form shows the field.

`Issuer`

*   Optional

The meaning of the field depends on the form:

*   On the SAML v2 form, the service provider [EntityId](https://fusionauth.io/docs/concepts/types/applications.md#saml-v2-integration-details) that FusionAuth uses for this Identity Provider. When you leave out the issuer, FusionAuth uses `<base_url>/samlv2/sp/<identityProviderId>`.
*   On the SAML v2 IdP Initiated form, the EntityId of the SAML v2 Identity Provider. The Identity Provider gives you this value. The SAML v2 IdP Initiated form requires the field.

`Verification keys`

*   Required
*   Available since `1.69.0`

The keys in [Key Master](https://fusionauth.io/docs/security/tokens-and-keys/key-master.md) that verify the signature on SAML responses from the Identity Provider. Import every signing certificate that the Identity Provider publishes, and add all of them. The key marked **Default** verifies responses whose signature doesn't include a certificate. For more information, see [SAML v2 Signature Verification](https://fusionauth.io/docs/authentication/identity-providers/samlv2-signature-verification.md).

`Button text`

*   Optional

The text of the button on the login form. The default value is `Login with SAML`.

Only the SAML v2 form shows the field, and the SAML v2 form requires the field.

`Button image`

*   Optional

The image on the button on the login form. When you leave out the image, the button shows a default SAML icon.

Only the SAML v2 form shows the field.

`Enable IdP initiated login`

*   Optional
*   Available since `1.43.0`

Allows IdP-initiated logins for this Identity Provider, in addition to SP-initiated logins. IdP-initiated login requires a paid plan, and FusionAuth doesn't recommend IdP-initiated login.

When you enable IdP-initiated login, you can't enable the Identity Provider for a CIMD domain. Available since `1.70.0`

Only the SAML v2 form shows the field. For more information, see [SAML v2 IdP-Initiated Login](https://fusionauth.io/docs/authentication/identity-providers/samlv2-idp-initiated-login.md).

`Expected Issuer`

*   Optional
*   Available since `1.43.0`

The expected EntityId (unique identifier) of the external SAML v2 Identity Provider. This field is required when **Enable IdP initiated login** is enabled.

Only the SAML v2 form shows the field. The SAML v2 IdP Initiated form uses **Issuer** for the same value.

`Linking strategy`

*   Optional
*   Available since `1.28.0`

The linking strategy for the Identity Provider. For more information, see [Linking Strategies](https://fusionauth.io/docs/authentication/identity-providers/linking-strategies.md).

Available since `1.65.0` You can **only** change this value when the identity provider is **disabled**. To change the linking strategy for an identity provider that is already enabled, disable the provider, change the value, and then re-enable the provider.

`Reconcile lambda`

*   Optional

A lambda that maps custom claims from the SAML response to the FusionAuth User or Registration. The lambda can't change where FusionAuth sends the user after login.

To create or configure a lambda, navigate to Customizations -> Lambdas . For more information, see [SAML v2 Reconcile Lambda](https://fusionauth.io/docs/lambdas/reconcile/samlv2-response-reconcile.md).

`Enable debug logging`

*   Optional
*   Defaults to `false`

Some Identity Providers don't comply with the SAML and XML signing specifications, which makes the integration harder.

When you enable debug logging, FusionAuth writes debugging information to the Event Log during a SAML login. To view the Event Log, navigate to System -> Event Log .

## Tenants

The Tenants tab limits the number of links that each user in a Tenant can have to this Identity Provider. Links to other Identity Providers don't count toward the limit. On a global Identity Provider, the tab starts empty. To set a limit for a Tenant, click Add tenant configuration . On a tenant-scoped Identity Provider, the tab lists only the Identity Provider's Tenant.

`Limit links per user`

*   Optional
*   Defaults to `false`
*   Available since `1.32.0`

When turned on, FusionAuth enforces **Maximum link count** for users in the Tenant.

`Maximum link count`

*   Optional
*   Available since `1.32.0`

The maximum number of links that a user can have to this Identity Provider. When a user reaches the limit, FusionAuth rejects a new link. The [Link API](https://fusionauth.io/docs/apis/identity-providers/links.md) returns a `400`, and the hosted login pages show an error.

For more information, see [Identity Providers and Tenants](https://fusionauth.io/docs/authentication/identity-providers/identity-provider-scope.md#link-limits).

## Options

![The Options section of the form to add a SAML v2 Identity Provider.](https://fusionauth.io/img/docs/screenshots/idp-samlv2-add-options.png)

`Unique Id claim`

*   Optional

The name of the claim in the SAML response that contains the unique Id of the user. When you leave out the claim, FusionAuth uses the `NameID`.

`Use NameId for email`

*   Optional
*   Defaults to `false`

When enabled, FusionAuth reads the email address of the user from the `NameID` in the SAML response.

`Email claim`

*   Optional

The name of the email claim in the SAML response.

When **Use NameId for email** is enabled, the Admin UI hides this field.

`Username claim`

*   Optional

The name of the username claim in the SAML response. FusionAuth never uses the `NameID` as the username. When you leave out the claim, the user has no username unless the reconcile lambda sets one. Set the claim when the **Linking strategy** links by username.

`Require encrypted assertions`

*   Optional
*   Available since `1.55.1`

When enabled, FusionAuth requires encrypted assertions in SAML responses from the Identity Provider. FusionAuth rejects a SAML response that contains an unencrypted assertion.

`Assertion decryption key`

*   Optional
*   Available since `1.55.1`

The key that decrypts SAML responses. This field is required when **Require encrypted assertions** is enabled. To create, manage, or import a key, navigate to Settings -> Key Master .

The key must contain an RSA private key. Give the matching public key or certificate to the SAML Identity Provider, which uses the public key to encrypt assertions.

### SAML v2 Form Only

Only the SAML v2 form shows the following options:

`Use POST method`

*   Optional

When enabled, FusionAuth sends the authentication request with the HTTP POST binding. Otherwise, FusionAuth uses the default Redirect binding, which uses the HTTP GET method.

`Sign requests`

*   Optional

When enabled, FusionAuth signs the authentication requests that FusionAuth sends to the Identity Provider.

`Request signing key`

*   Optional

The key that signs the SAML request. This field is required when **Sign requests** is enabled. To create, manage, or import a key, navigate to Settings -> Key Master .

`Canonicalization method`

*   Optional

The XML signature canonicalization method that FusionAuth uses to digest and sign the SAML request. This field is required when **Use POST method** and **Sign requests** are enabled.

`Enable login hint`

*   Optional
*   Available since `1.43.0`

When enabled and the AuthN request uses HTTP redirect bindings, FusionAuth sends the username or email address to the IdP as a login hint, when available.

`Login hint parameter name`

*   Optional
*   Available since `1.43.0`

The name of the parameter that passes the username or email address to the IdP as a login hint. FusionAuth sends the parameter when the AuthN request uses HTTP redirect bindings. This field is required when **Enable login hint** is enabled.

`Destination assertion policy`

*   Optional
*   Available since `1.43.0`

The policy for the destination assertion on the SAML login request. The possible values are:

*   `Enabled`: FusionAuth verifies that the Destination attribute in the SAML response equals the FusionAuth [ACS](https://fusionauth.io/docs/authentication/identity-providers/overview-samlv2.md) (Assertion Consumer Service) URL. `Enabled` is the default and the recommended setting.
*   `Disabled`: FusionAuth doesn't validate the Destination attribute. FusionAuth doesn't recommend this setting.
*   `Allow alternates`: FusionAuth verifies that the Destination attribute is either the FusionAuth ACS or one of the **Alternate destinations**. Use this setting with caution, to help migrate from a third-party IdP.

`Alternate destinations`

*   Optional
*   Available since `1.43.0`

The URLs that FusionAuth accepts as SAML login destinations when **Destination assertion policy** is `Allow alternates`.

## Managed Domains

Only the SAML v2 form has the Managed domains tab.

![The Managed domains section of the form to add a SAML v2 Identity Provider.](https://fusionauth.io/img/docs/screenshots/idp-samlv2-add-domains.png)

`Managed domains`

*   Optional

The email domains that this Identity Provider manages, one domain on each line. For example, to use the SAML v2 Identity Provider only for employees, add the company domain, such as `piedpiper.com`.

With managed domains, the login page doesn't show a button for this Identity Provider. Instead, the login page first asks the user for an email address. When the email address matches a managed domain, FusionAuth redirects the user to this Identity Provider to authenticate. Otherwise, the login page asks for a password, and FusionAuth authenticates the user.

The [Lookup API](https://fusionauth.io/docs/apis/identity-providers.md#lookup-an-identity-provider) also uses managed domains. For more information, see [Managed Domains](https://fusionauth.io/docs/authentication/identity-providers/managed-domains.md).

## Integration Details

FusionAuth generates the values that your SAML v2 Identity Provider needs to trust FusionAuth as a [relying party](https://fusionauth.io/docs/authentication/passkeys.md). To view the values, navigate to Settings -> Identity Providers , and click view next to the Identity Provider. The values appear in the SAML v2 Integration details section.

![The SAML v2 Integration details section of a SAML v2 Identity Provider in the Admin UI.](https://fusionauth.io/img/docs/screenshots/idp-view-samlv2.png)

In the following values, `<base_url>` is the URL of your FusionAuth instance, such as `https://login.piedpiper.com`. `<identityProviderId>` is the Id of the Identity Provider.

`IdP Initiated Callback URLs (ACS)`

The [Assertion Consumer Service](https://fusionauth.io/docs/authentication/identity-providers/overview-samlv2.md) (ACS) URL for IdP-initiated logins to each enabled Application, at `<base_url>/samlv2/acs/<identityProviderId>/<clientId>`. `<clientId>` is the **Client Id** of the Application.

The field appears on a SAML v2 IdP Initiated Identity Provider, and on a SAML v2 Identity Provider with **Enable IdP initiated login** enabled.

To set the redirect URI or the scope of the login, add query parameters to the URL. For more information, see [SAML v2 IdP-Initiated Login](https://fusionauth.io/docs/authentication/identity-providers/samlv2-idp-initiated-login.md).

`Callback URL (ACS)`

The ACS URL for SP-initiated logins, at `<base_url>/samlv2/acs`.

The field appears only on a SAML v2 Identity Provider.

`Issuer`

The service provider EntityId, at `<base_url>/samlv2/sp/<identityProviderId>`. On a SAML v2 Identity Provider, the **Issuer** form field overrides the value.

FusionAuth requires the Audience in the [SAML assertion](https://fusionauth.io/docs/authentication/act-as-an-idp/host-saml-idp.md) to match the issuer.

`Metadata URL`

The URL of the service provider metadata, at `<base_url>/samlv2/sp/metadata/<identityProviderId>`.

## Limitations

FusionAuth supports SAML both as a SAML Identity Provider (IdP) and as a Service Provider (SP). The SP implementation has certain limitations.

Version `2.0` is supported; other SAML versions are unsupported.

FusionAuth supports the following **NameID format** values by default:

*   `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`
*   `urn:oasis:names:tc:SAML:2.0:nameid-format:persistent`

You may also provide your own format name. To determine the correct value, please examine the supported values of the software package for which you are configuring FusionAuth as the SP.

Map between SAML claims and user claims using a [reconcile lambda](https://fusionauth.io/docs/lambdas/reconcile/samlv2-response-reconcile.md) or [FusionAuth SAMLv2 Identity Provider configuration](https://fusionauth.io/docs/authentication/identity-providers.md).

Note

Prior to version `1.28.0`, FusionAuth only supported using the name Id for the user's email address.

FusionAuth supports the following SAMLv2 bindings:

*   HTTP Redirect
*   HTTP POST

Other bindings are not supported.

Related

[Authentication Add an External SAML v2 IdP Learn how to let users log in to FusionAuth through an external SAML v2 Identity Provider. samlsaml v2saml v2 idp](https://fusionauth.io/docs/authentication/identity-providers/overview-samlv2.md)

[Authentication How SAML v2 IdP-Initiated Login Works Learn how FusionAuth handles a SAML v2 IdP-initiated login, and how FusionAuth chooses the redirect URI and scope. samlsaml v2idp initiated](https://fusionauth.io/docs/authentication/identity-providers/samlv2-idp-initiated-login.md)

[Authentication How FusionAuth Verifies SAML v2 Signatures Learn how FusionAuth chooses the key that verifies the signature on a SAML response, and how certificate rotation works. samlsaml v2verification keys](https://fusionauth.io/docs/authentication/identity-providers/samlv2-signature-verification.md)

[APIs SAML v2 IdP Initiated API Learn about the APIs for creating, retrieving, updating and deleting SAML v2 IdP Initiated identity providers. samlidp initiated](https://fusionauth.io/docs/apis/identity-providers/samlv2-idp-initiated.md)
---

## Other pages in Identity Providers

> For the full index of this section, see [Authentication](https://fusionauth.io/docs/llms-authentication.txt).

- [Identity Providers, Applications, and Overrides](https://fusionauth.io/docs/authentication/identity-providers/applications-and-overrides.md): Learn how Identity Providers work with Applications, CIMD clients, and Application-specific overrides.
- [Attribute Mappings](https://fusionauth.io/docs/authentication/identity-providers/attribute-mappings.md): Learn how to map claims from an Identity Provider response to FusionAuth user and registration fields without a lambda.
- [Add a SAML v2 with ADFS IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/adfs.md): Configure SAML v2 for Active Directory Federation Services (ADFS).
- [Add an OpenID Connect with Azure AD IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/azure-ad-oidc.md): Set up user login using Azure AD/Microsoft Entra ID as an OpenID Connect Identity Provider.
- [Add a SAML v2 with Azure AD IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/azure-ad-saml.md): Learn how to configure Azure AD (Microsoft Entra ID) as a SAML v2 Identity Provider for FusionAuth.
- [Add a OpenID Connect with Cognito IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/cognito.md): Set up user login using Cognito as an OpenID Connect Identity Provider.
- [Add a HYPR IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/hypr.md): Set up user login with HYPR using the HYPR Identity Provider.
- [Add an OpenID Connect with Okta IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/okta-oidc.md): Learn how to set up user login using Okta as an OpenID Connect Identity Provider.
- [Add SAML v2 IdP-Initiated Login With Okta](https://fusionauth.io/docs/authentication/identity-providers/enterprise/okta-samlv2-idp-initiated.md): Learn how to let users log in to FusionAuth from the Okta dashboard with SAML v2 IdP-initiated login.
- [Add a SAML v2 with Okta IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/okta-samlv2.md): Configure SAML v2 for Okta.
- [Add a SAML v2 IdP-Initiated IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/samlv2-idp-initiated.md): Learn how to let users log in to FusionAuth from a dashboard in a SAML v2 Identity Provider that supports only IdP-initiated login.
- [External JWT IdP Example Usage](https://fusionauth.io/docs/authentication/identity-providers/external-jwt/example.md): Learn how to federate identity using the External JWT Identity Provider.
- [Add an External JWT IdP](https://fusionauth.io/docs/authentication/identity-providers/external-jwt.md): Learn how to configure an External JWT Identity Provider so FusionAuth can log in users with JWTs from a third-party identity provider.
- [Add an OpenID Connect with Discord IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/discord.md): Learn how to add a Login with Discord button to the FusionAuth login pages with the OpenID Connect Identity Provider.
- [Add an Epic Games IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/epic-games.md): Learn how to add an Epic Games login button to the FusionAuth login pages.
- [Add a Nintendo IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/nintendo.md): Learn how to add a Nintendo login button to the FusionAuth login pages.
- [Add a Sony PlayStation Network IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/sony.md): Learn how to add a Sony PlayStation Network login button to the FusionAuth login pages.
- [Add a Steam IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/steam.md): Learn how to add a Steam login button to the FusionAuth login pages.
- [Add a Twitch IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/twitch.md): Learn how to add a Twitch login button to the FusionAuth login pages.
- [Add an Xbox IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/xbox.md): Learn how to add an Xbox login button to the FusionAuth login pages.
- [Identity Provider Hints](https://fusionauth.io/docs/authentication/identity-providers/hints.md): Learn how to send users from the hosted login pages straight to an Identity Provider with the idp_hint and login_hint parameters.
- [Identity Provider Scope](https://fusionauth.io/docs/authentication/identity-providers/identity-provider-scope.md): Learn about global and tenant-scoped Identity Providers, and how to limit the links that each user can have to an Identity Provider.
- [Add an Identity Provider (IdP)](https://fusionauth.io/docs/authentication/identity-providers.md): Learn how to let users log in through an external identity provider such as Google or Okta.
- [Linking Strategies](https://fusionauth.io/docs/authentication/identity-providers/linking-strategies.md): Learn how FusionAuth links a user from an Identity Provider to a FusionAuth user.
- [Managed Domains](https://fusionauth.io/docs/authentication/identity-providers/managed-domains.md): Learn how managed domains connect email domains to an Identity Provider.
- [Add an OpenID Connect IdP](https://fusionauth.io/docs/authentication/identity-providers/overview-oidc.md): Learn how to let users log in to FusionAuth through an external OpenID Connect Identity Provider.
- [Add an External SAML v2 IdP](https://fusionauth.io/docs/authentication/identity-providers/overview-samlv2.md): Learn how to let users log in to FusionAuth through an external SAML v2 Identity Provider.
- [How SAML v2 IdP-Initiated Login Works](https://fusionauth.io/docs/authentication/identity-providers/samlv2-idp-initiated-login.md): Learn how FusionAuth handles a SAML v2 IdP-initiated login, and how FusionAuth chooses the redirect URI and scope.
- [How FusionAuth Verifies SAML v2 Signatures](https://fusionauth.io/docs/authentication/identity-providers/samlv2-signature-verification.md): Learn how FusionAuth chooses the key that verifies the signature on a SAML response, and how certificate rotation works.
- [Add an Apple IdP](https://fusionauth.io/docs/authentication/identity-providers/social/apple.md): Learn how to add a Sign in with Apple button to your application.
- [Add a Facebook IdP](https://fusionauth.io/docs/authentication/identity-providers/social/facebook.md): Learn how to add a Login with Facebook button to your application.
- [Add a Github IdP](https://fusionauth.io/docs/authentication/identity-providers/social/github.md): Set up user login using Github as an OpenID Connect Identity Provider.
- [Add a Google IdP](https://fusionauth.io/docs/authentication/identity-providers/social/google.md): Learn how to add a Login with Google button to your application.
- [Add a LinkedIn IdP](https://fusionauth.io/docs/authentication/identity-providers/social/linkedin.md): Learn how to add a Sign in with LinkedIn button to your application.
- [Add a Twitter/X IdP](https://fusionauth.io/docs/authentication/identity-providers/social/twitter.md): Learn how to add a Login with Twitter/X button to your application.
