SAML v2 Identity Provider Settings
On this page
For the steps to add a SAML v2 Identity Provider, see Add an External SAML v2 IdP. For the steps to add a SAML v2 IdP Initiated Identity Provider, see Add a SAML v2 IdP-Initiated IdP.
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#

EnabledWhether this Identity Provider is enabled. When you disable the Identity Provider, FusionAuth disables the Identity Provider globally.
IdAn optional UUID. When you leave out the Id, FusionAuth generates a unique Id.
SourceThe 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.
TenantThe 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.
NameA unique name for the Identity Provider. FusionAuth uses the name for display only, and you can change the name later.
IdP endpointThe 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 formatThe NameIDThe element of a SAML assertion that identifies the user, such as by email address or a persistent Id. format to send to the SAML v2 Identity Provider in the AuthN request.
Only the SAML v2 form shows the field.
IssuerThe meaning of the field depends on the form:
- On the SAML v2 form, the service provider EntityIdA unique identifier, usually a URL, that names a SAML Identity Provider or Service Provider. The SAML entity Id is unrelated to FusionAuth Entities. 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 keysThe keys in Key MasterThe FusionAuth subsystem for managing cryptographic keys. 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.
Button textThe 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 imageThe 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 loginAllows 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.
Expected IssuerThe 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 strategyThe linking strategy for the Identity Provider. For more information, see Linking Strategies.
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 lambdaA 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.
Enable debug loggingSome 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 userWhen turned on, FusionAuth enforces Maximum link count for users in the Tenant.
Maximum link countThe 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 returns a 400, and the hosted login pages show an error.
For more information, see Identity Providers and Tenants.
Options#

Unique Id claimThe 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 emailWhen enabled, FusionAuth reads the email address of the user from the NameID in the SAML response.
Email claimThe name of the email claim in the SAML response.
When Use NameId for email is enabled, the Admin UI hides this field.
Username claimThe 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 assertionsWhen enabled, FusionAuth requires encrypted assertions in SAML responses from the Identity Provider. FusionAuth rejects a SAML response that contains an unencrypted assertion.
Assertion decryption keyThe 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 methodWhen 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 requestsWhen enabled, FusionAuth signs the authentication requests that FusionAuth sends to the Identity Provider.
Request signing keyThe 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 methodThe 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 hintWhen 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 nameThe 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 policyThe 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 ACSThe service provider endpoint that receives SAML responses from an identity provider. When FusionAuth acts as a service provider, the endpoint is/samlv2/acs. (Assertion Consumer Service) URL.Enabledis 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 destinationsThe 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.

Managed domainsThe 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 also uses managed domains. For more information, see Managed Domains.
Integration Details#
FusionAuth generates the values that your SAML v2 Identity Provider needs to trust FusionAuth as a relying partyAn application that depends on another system to authenticate users. In OpenID Connect, the relying party is the client application. In WebAuthn, the relying party is the website that registers and verifies passkeys.. To view the values, navigate to Settings -> Identity Providers , and click next to the Identity Provider. The values appear in the SAML v2 Integration details section.

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 ServiceThe service provider endpoint that receives SAML responses from an identity provider. When FusionAuth acts as a service provider, the endpoint is /samlv2/acs. (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.
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.
IssuerThe 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 assertionA signed XML statement from an identity provider that tells a service provider who the user is and which attributes the user has. to match the issuer.
Metadata URLThe 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:emailAddressurn: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 or FusionAuth SAMLv2 Identity Provider configuration.
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
Learn how to let users log in to FusionAuth through an external SAML v2 Identity Provider.
Learn how FusionAuth handles a SAML v2 IdP-initiated login, and how FusionAuth chooses the redirect URI and scope.
Learn how FusionAuth chooses the key that verifies the signature on a SAML response, and how certificate rotation works.
Learn about the APIs for creating, retrieving, updating and deleting SAML v2 IdP Initiated identity providers.