---
title: Reference
description: This reference covers the configuration settings for identity providers (IdPs), service providers (SPs), and circles of trust.
component: pingoneaic
page_id: pingoneaic:am-saml2:saml2-reference
canonical_url: https://docs.pingidentity.com/pingoneaic/am-saml2/saml2-reference.html
keywords: ["SAML 2.0", "Single Sign-on (SSO)", "Algorithm"]
page_aliases: ["saml2-guide:saml2-reference.adoc"]
section_ids:
  saml2-hosted-idp-configuration: Hosted IdP configuration
  idp-assertion-content: Assertion Content tab
  signing_and_encryption: Signing and Encryption
  nameid_format: NameID Format
  authentication_context: Authentication Context
  assertion_time: Assertion Time
  basic_authentication: Basic Authentication
  assertion_cache: Assertion Cache
  idp-assertion-processing: Assertion Processing tab
  attribute_mapper: Attribute Mapper
  account_mapper: Account Mapper
  local_configuration: Local Configuration
  idp-services: Services tab
  idp_service_attributes: IDP Service Attributes
  idp-advanced: Advanced tab
  sae_configuration: SAE Configuration
  ecp_configuration: ECP Configuration
  session_synchronization: Session Synchronization
  idp_finder_implementation: IDP Finder Implementation
  relay_state_url_list: Relay State URL List
  idp_adapter: IDP Adapter
  application_context: Application Context
  saml2-remote-idp-configuration: Remote IdP configuration
  remote-idp-assertion-content: Assertion Content
  signing_and_encryption_2: Signing and Encryption
  nameid_format_2: NameID Format
  secrets: Secrets
  basic_authentication_2: Basic Authentication
  client_authentication: Client Authentication
  remote-idp-services: Services tab
  idp_service_attributes_2: IDP Service Attributes
  nameid_mapping: NameID Mapping
  saml2-hosted-sp-configuration: Hosted SP configuration
  sp-assertion-content: Assertion Content tab
  signing_and_encryption_3: Signing and Encryption
  nameid_format_3: NameID Format
  authentication_context_2: Authentication Context
  assertion_time_2: Assertion Time
  basic_authentication_3: Basic Authentication
  sp-hosted-client-auth: Client Authentication
  sp-assertion-processing: Assertion Processing tab
  attribute_mapper_2: Attribute Mapper
  auto_federation: Auto Federation
  account_mapper_2: Account Mapper
  artifact_message_encoding: Artifact Message Encoding
  url: URL
  config-redirect-tree: Redirect Tree
  adapter: Adapter
  sp-services: Services tab
  sp_service_attributes: SP Service Attributes
  sp-advanced: Advanced tab
  sae_configuration_2: SAE Configuration
  ecp_configuration_2: ECP Configuration
  idp_proxy: IDP Proxy
  session_synchronization_2: Session Synchronization
  relay_state_url_list_2: Relay State URL List
  saml2-remote-sp-configuration: Remote SP configuration
  remote-sp-assertion-content: Assertion Content
  signing_and_encryption_4: Signing and Encryption
  nameid_format_4: NameID Format
  secrets_2: Secrets
  basic_authentication_4: Basic Authentication
  remote-sp-assertion-processing: Assertion Processing
  attribute_mapper_3: Attribute Mapper
  artifact_message_encoding_2: Artifact Message Encoding
  remote-sp-services: Services
  sp_service_attributes_2: SP Service Attributes
  remote-sp-advanced: Advanced settings
  request_processing: Request Processing
  sae_configuration_3: SAE Configuration
  idp_proxy_2: IDP Proxy
  config-treename: Tree Name
  application_context_2: Application Context
  saml2-cot-configuration: Circle of trust
---

# Reference

This reference covers the configuration settings for identity providers (IdPs), service providers (SPs), and circles of trust.

|   |                                                                                                                                                                                                     |
| - | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | You can override certain global configuration settings for SAML 2.0 flows with ESVs. Learn more in [Use ESVs to override global configuration](../tenants/esvs-override-global-configuration.html). |

## Hosted IdP configuration

To edit hosted IdP settings, go to Native Consoles > Access Management > Realms > *Realm Name* > Applications > Federation > Entity Providers > *Provider Name*.

### Assertion Content tab

#### Signing and Encryption

* Request/Response Signing

  The parts of messages the IdP requires the SP to sign digitally.

* Encryption

  When NameID Encryption is selected, the SP must encrypt name identifier (NameID) elements.

* Secret ID and Algorithms

  * Secret ID Identifier

    By default, Advanced Identity Cloud uses the entity provider's role-specific, default global [secret IDs](../am-reference/secret-id-mappings.html). Alternatively, set an identifier for the secret ID Advanced Identity Cloud uses for this entity provider when resolving secrets. For example, when you set this to `demo`, the entity provider uses the following secret IDs:

    * `am.applications.federation.entity.providers.saml2.demo.signing`

    * `am.applications.federation.entity.providers.saml2.demo.encryption`

  * Signing Algorithm

    The algorithms the provider uses to sign the request and response attributes selected in the Request/Response Signing group.

    The provider's metadata extension lists these algorithms.

    This property has no default.

  * Digest Algorithm

    The digest algorithms the provider uses to sign the requests and responses selected in the Request/Response Signing group.

    The provider's metadata extension lists these algorithms.

    This property has no default.

  * Encryption Algorithm

    There are two types of encryption algorithms for the provider:

    * Symmetric algorithms; the provider uses these to encrypt the objects selected in the Encryption group. Select one or more AES algorithms from the drop-down list.

      Default: `http://www.w3.org/2001/04/xmlenc#aes128-cbc`

    * Asymmetric algorithms; the provider advertises this as the transport key algorithm. When SAML 2.0 token encryption is enabled, hosted providers should use the algorithm the remote provider advertises to encrypt symmetric encryption keys.

      Select one or more algorithms from the drop-down list:

      * `http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p` (default)

      * `http://www.w3.org/2009/xmlenc11#rsa-oaep`

        For this algorithm, Advanced Identity Cloud uses `http://www.w3.org/2009/xmlenc11#mgf1sha256` to create the transport key.

      * `http://www.w3.org/2001/04/xmlenc#rsa-1_5`

        For security reasons, do not use this option.

#### NameID Format

* NameID Format List

  Supported NameIDs for users shared between providers for single sign-on (SSO).

  The following diagram shows how the hosted IdP determines which NameID format to use:

  ![How the hosted IdP decides which NameID formats to use](_images/nameid-format-flow-hosted-idp.svg)

* NameID Value Map

  Maps a NameID format (Key) to a user profile attribute (Value). The `persistent` and `transient` NameID formats don't have to be mapped.

  The mapped user profile attribute must be one of the attributes listed in [User identity attributes and properties reference](../identities/user-identity-properties-attributes-reference.html). Make sure you use the AM attribute name.

  NameID mapping supports Base64-encoded binary values. Select the Binary option to Base64-encode the attribute's value before it's added to the assertion.

#### Authentication Context

* Mapper

  A class that implements the `IDPAuthnContextMapper` interface and sets up the authentication context.

  Don't edit this field.

  Default: `com.sun.identity.saml2.plugins.DefaultIDPAuthnContextMapper`

* Authentication Context

  The supported authentication context classes and any authentication mechanisms Advanced Identity Cloud uses when an SP specifies the class in a SAML 2.0 authentication request. For details, refer to [Authentication Context for the OASIS Security Assertion Markup Language (SAML) v2.0](http://docs.oasis-open.org/security/saml/v2.0/saml-authn-context-2.0-os.pdf).

  Default: `urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport`

  * Context Reference

    Select from the following options to define a context reference:

    * Predefined Reference to choose from a list of supported context references.

    * Custom Reference to type your own reference to an authentication context.

  * Key

    Select an authentication mechanism from the list for Advanced Identity Cloud to use when the SP specifies an authentication context class in a SAML 2.0 request.

    > **Collapse: Authentication mechanisms**
    >
    > * Service
    >
    >   Set the Value to the authentication journey to use.
    >
    > * Module
    >
    >   Not supported.
    >
    > * User
    >
    >   Not supported.
    >
    > * Role
    >
    >   Not supported.
    >
    > * Authentication Level
    >
    >   Advanced Identity Cloud uses a method where the authentication level is greater than or equal to the Value. Match the Value field with the Level field to avoid requiring users to re-authenticate unnecessarily.
    >
    >   If more than one suitable method exists, Advanced Identity Cloud presents the available options with a `ChoiceCallback`.

  * Value

    Depends on the Key. For example, if you selected `Service`, enter the name of the journey.

  * Level

    The order of precedence for supported context reference classes as a numeric value.

    Higher numbers are stronger than lower numbers.

#### Assertion Time

* Not-Before Time Skew

  Grace period in seconds for the `NotBefore` time in assertions.

* Effective Time

  Assertion validity in seconds.

#### Basic Authentication

* Enabled, User Name, Password

  When enabled, authenticate with the specified credentials at SOAP endpoints.

#### Assertion Cache

* Enabled

  When enabled, cache assertions.

### Assertion Processing tab

#### Attribute Mapper

Extension point to map the IdP attributes included in the SAML assertion.

* Attribute Mapper

  The Java class for the default implementation, which retrieves attributes from the user profile. If the attributes are not present in the profile, retrieve attributes from the user session.

  Do not edit this field. It is not used if Attribute Mapper Script is set.

  Default: `com.sun.identity.saml2.plugins.DefaultIDPAttributeMapper`

* Attribute Mapper Script

  A JavaScript implementation of an attribute mapper.

  Select a `Saml2 IDP Attribute Mapper` script from this realm.

  For an example, refer to [saml2-idp-attribute-mapper.js](../am-scripting/sample-scripts.html#saml2-idp-attribute-mapper-js).

* Attribute Map

  Maps SAML attributes to user profile attributes or session properties.

  The default implementation also supports static values. Enclose the profile attribute name in double quotes (`"`):

  ![The static value is enclosed in double quotes.](_images/static-attr-mapping.png)

#### Account Mapper

* Account Mapper

  The Java class for the default implementation to map remote users to local user profiles.

* Disable NameID Persistence

  By default, Advanced Identity Cloud stores NameIDs the IDP issues when the NameID format is persistent (`urn:oasis:names:tc:SAML:2.0:nameid-format:persistent`). When you set this, Advanced Identity Cloud no longer stores persistent NameIDs.

  Only enable this setting after configuring a NameID Value Mapping for persistent NameIDs; otherwise, the `ManageNameID` and the `NameIDMapping` SAML profiles no longer work with persistent NameIDs.

  Advanced Identity Cloud does not remove existing, stored account links when you enable this setting.

#### Local Configuration

* Auth URL

  If set, overrides the default UI login URL to authenticate users during federation.

  Use this setting, for example, if you have created a custom UI for federation.

  The application exposing the URL must authenticate federated users, establish their sessions, and return SSO tokens in the tenant session cookies.

  Advanced Identity Cloud must accept the cookie for the domain of the URL. If Advanced Identity Cloud uses host cookies, the FQDN of the URL must match your tenant's FQDN.

  Advanced Identity Cloud redirects users to the URL, appending a `goto` parameter. The parameter contains the URL to redirect to after authentication. The application must not override the `goto` parameter, as changing it causes federation to fail. For details, refer to [Success and failure redirection URLs](../am-authentication/redirection-url-precedence.html).

* Reverse Proxy URL

  The URL of the reverse proxy for SAML endpoints if one exists.

* External Application Logout URL

  The URL to send an HTTP POST with all cookies when receiving a logout request. Add a user session property by including it as a query string parameter named `appsessionproperty`.

### Services tab

* MetaAlias

  Read-only alias to locate the provider's entity identifier, specified as `/realm-name/provider-name`, for example: `/alpha/myIDP`.

#### IDP Service Attributes

* Artifact Resolution Service

  The endpoint to manage artifact resolution.

* Single Logout Service

  The endpoints to manage single logout (SLO) depending on the SAML binding.

* Manage NameID Service

  The endpoints to manage NameIDs depending on the SAML binding.

* Single SignOn Service

  The endpoints to manage SSO.

  These endpoints are used only for SP-initiated flows but are included as a requirement of the [SAML V 2.0 Metadata specification](http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf).

* NameID Mapping

  The endpoint to manage NameID mapping.

* Assertion ID Request Service

  The endpoints to request a specific assertion by assertion ID.

### Advanced tab

#### SAE Configuration

* IDP URL

  The endpoint to manage Secure Attribute Exchange (SAE) requests.

* Application Security Configuration

  Encryption settings for SAE.

#### ECP Configuration

* IDP Session Mapper

  A Java class to find a valid session in an HTTP servlet request to an IdP with a SAML Enhanced Client or Proxy (ECP) profile.

  Do not edit this field.

#### Session Synchronization

* Enabled

  When enabled, the IdP sends backchannel SOAP logout requests to all SPs when an authenticated session times out. An authenticated session can time out after the maximum idle time or maximum session time, for example.

#### IDP Finder Implementation

* IDP Finder Implementation Class

  A Java class to find the preferred IdP for a proxied authentication request.

* IDP Finder JSP

  A JSP to present the list of IdPs to the user.

* Enable Proxy IDP Finder For All SPs

  When enabled, Advanced Identity Cloud applies the finder for all remote SPs.

#### Relay State URL List

* Relay State URL List

  List of accepted `RelayState` URLs.

  Advanced Identity Cloud validates the `RelayState` redirection URLs against this list during SLO. Advanced Identity Cloud only allows redirection to `RelayState` URLs in this list or matching the tenant domain; otherwise, a browser error occurs.

  This setting does not apply to IdP-initiated SSO as the SP validates the `RelayState` URL.

  Use the pattern matching rules in [Success and failure redirection URLs](../am-authentication/redirection-url-precedence.html) to specify URLs.

#### IDP Adapter

* IDP Adapter Class

  A Java class Advanced Identity Cloud invokes immediately before sending a SAML 2.0 response.

* IDP Adapter Script

  A JavaScript implementation of an IdP adapter.

  Select a `Saml2 IDP Adapter` script from this realm.

  Find an example script in [SAML2 IDP Adapter Script (Next Gen)](../am-scripting/sample-scripts.html#saml2-idp-adapter-js).

#### Application Context

* Enable Application Context

  When enabled, this setting makes the application context available in all SAML 2.0 flows through the `samlApplication` binding in [Scripted Decision node scripts](../am-scripting/scripting-api-node.html#samlapp-binding).

  You can override this value by setting [`Application Context Enabled`](#saml-sp-app-context-enabled) in the remote SP configuration.

## Remote IdP configuration

After you've set up a remote IdP, configure it under Native Consoles > Access Management > Realms > *Realm Name* > Applications > Federation > Entity Providers > *Provider Name*.

### Assertion Content

#### Signing and Encryption

* Request/Response Signing

  The parts of messages the IdP requires the SP to sign digitally.

* Encryption

  * NameID Encryption – When selected, the SP must encrypt NameID elements.

* Algorithms

  Select the signing, encryption and digest algorithms that the SP will use.

#### NameID Format

* NameID Format List

  Supported NameIDs for users shared between providers for single sign-on (SSO).

#### Secrets

* Secret Label Identifier – Identifier used to create a secret label for mapping to a secret in the secret store. Advanced Identity Cloud uses this label to create a specific secret label for this entity provider. The secret label takes the form `am.applications.federation.entity.providers.saml2.identifier.basicauth` where identifier is the value of Secret Label Identifier. The label can only contain characters `a-z`, `A-Z`, `0-9`, and periods (`.`). It can't start or end with a period.

  If you change the Secret Label Identifier for a specific entity provider, any corresponding mappings are deleted, unless they're referenced by other entity providers.

#### Basic Authentication

* Enabled – Authenticate with the specified username and password when making requests to this entity provider's SOAP endpoints.

* User Name – The username with which to authenticate at SOAP endpoints.

* Password – The password with which to authenticate at SOAP endpoints.

  |   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  |   | If you set a value for Secret Label Identifier, and Advanced Identity Cloud finds a mapping to this secret label in the secret store, the value of this Password field is ignored. For example, if you set the Secret Label Identifier to demo and Advanced Identity Cloud finds a secret mapping to `am.applications.federation.entity.providers.saml2.demo.basicauth`, Advanced Identity Cloud uses this secret and ignores the value of the Password field. For basic authentication, there is no *default* secret label for the realm, or globally. |

#### Client Authentication

These settings let an SP authenticate to the IdP using mutual TLS (mTLS).

When you enable client authentication for any request type in this section, you must configure a secret mapping from one of the following secret labels to a valid secret (ESV) in the secret store:

* `am.default.applications.federation.entity.providers.saml2.sp.mtls` – the global or realm-specific mapping for hosted SPs

* `am.applications.federation.entity.providers.saml2.identifier.mtls` – a mapping for a specific SP, where identifier is the value of the Secret Label Identifier you set in the Secrets panel in the SP configuration.

If you configure a global mapping, a realm-specific mapping, and a mapping for a specific SP, the order of precedence is as follows:

* Hosted SP-specific mapping

* Realm-level default

* Global default

The certificates mapped to these labels are included in the SP metadata export with `<KeyDescriptor use="signing">`.

Currently, you can enable mTLS for the following request:

* Artifact Resolve – For artifact resolution requests, the IdP instructs the SP to send a client certificate along with the request.

### Services tab

#### IDP Service Attributes

* Artifact Resolution Service

  The endpoint to manage artifact resolution.

* Single Logout Service

  The endpoints to manage SLO depending on the SAML binding.

  These endpoints are used only for SP-initiated flows but are included as a requirement of the [SAML V 2.0 Metadata specification](http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf).

* Manage NameID Service

  The endpoints to manage NameIDs depending on the SAML binding.

* Single SignOn Service

  The endpoints to manage SSO.

#### NameID Mapping

* URL

  The endpoint to manage NameID mapping.

## Hosted SP configuration

To edit hosted SP settings, go to Native Consoles > Access Management > Realms > *Realm Name* > Applications > Federation > Entity Providers > *Provider Name*.

### Assertion Content tab

#### Signing and Encryption

* Request/Response Signing

  The parts of messages the SP requires the IdP to sign digitally.

* Encryption

  When selected, the IdP must encrypt the selected elements.

* Secret ID and Algorithms

  * Secret ID Identifier

    By default, Advanced Identity Cloud uses the entity provider's role-specific, default global secret IDs. Alternatively, set an identifier for the secret ID Advanced Identity Cloud uses for this entity provider when resolving secrets. For example, when you set this to `demo`, the entity provider uses the following secret IDs:

    * `am.applications.federation.entity.providers.saml2.demo.signing`

    * `am.applications.federation.entity.providers.saml2.demo.encryption`

  * Signing Algorithm

    The algorithms the provider uses to sign the request and response attributes selected in the Request/Response Signing group.

    The provider's metadata extension lists these algorithms.

    This property has no default.

  * Digest Algorithm

    The digest algorithms the provider uses to sign the requests and responses selected in the Request/Response Signing group.

    The provider's metadata extension lists these algorithms.

    This property has no default.

  * Encryption Algorithm

    The two types of encryption algorithms for the provider:

    * Symmetric algorithms; the provider uses these to encrypt the objects selected in the Encryption group. Select one or more AES algorithms from the drop-down list.

      Default: `http://www.w3.org/2001/04/xmlenc#aes128-cbc`

    * Asymmetric algorithms; the provider advertises this as the transport key algorithm. When SAML 2.0 token encryption is enabled, hosted providers should use the algorithm the remote provider advertises to encrypt symmetric encryption keys.

      Select one or more algorithms from the drop-down list:

      * `http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p` (default)

      * `http://www.w3.org/2009/xmlenc11#rsa-oaep`

        For this algorithm, Advanced Identity Cloud uses `http://www.w3.org/2009/xmlenc11#mgf1sha256` to create the transport key.

      * `http://www.w3.org/2001/04/xmlenc#rsa-1_5`

        For security reasons, don't use this option.

#### NameID Format

* NameID Format List

  Supported NameIDs for users shared between providers for SSO.

  The following diagram shows how the hosted SP determines which NameID format to use:

  ![How the hosted SP decides which NameID formats to use](_images/nameid-format-flow-hosted-sp.svg)

* Disable NameID Persistence

  By default, Advanced Identity Cloud stores NameIDs the IdP issues when the NameID format is persistent (`urn:oasis:names:tc:SAML:2.0:nameid-format:persistent`) and the account manager matched a local user to the assertion. When you set this, Advanced Identity Cloud no longer stores persistent NameIDs.

  When you enable this setting, end users must authenticate locally for each SAML login.

#### Authentication Context

* Mapper

  A class that implements the `SPAuthnContextMapper` interface and maps the incoming request parameters to an authentication context.

  Don't edit this field.

  Default: `com.sun.identity.saml2.plugins.DefaultSPAuthnContextMapper`

* Authentication Context

  The authentication context maps the URI references to the IdP's supported authentication context classes to authentication levels set on the SP side.

  * Context Reference

    Select from the following options to define a context reference:

    * Predefined Reference to choose from a list of supported context references.

    * Custom Reference to type your own reference to an authentication context.

  * Level

    The order of precedence of the context reference classes as a numeric value.

    Classes with higher numbers are considered stronger than lower numbered classes. The values determine which authentication classes can be used when the SP makes an authentication request that uses a comparison attribute; for example, `minimum` or `better`.

  Learn about authentication context classes in [Authentication Context for the OASIS Security Assertion Markup Language (SAML) V2.0](http://docs.oasis-open.org/security/saml/v2.0/saml-authn-context-2.0-os.pdf) in the *SAML V2.0 Standard*.

  Default value: `urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport`

* Comparison Type

  Used in conjunction with the default authentication context to specify the possible range of authentication mechanisms the IdP can choose from.

  For example, if the Comparison Type field is set to `better`, and the `PasswordProtectedTransport` authentication context class is selected in the Default Authentication Context field, the IdP must select an authentication mechanism with a higher level assigned.

  Default: `exact`

* Include Request Authentication Context

  When enabled, include the authentication context class as the requested authentication context in the SAML 2.0 authentication request.

  Default: Enabled

#### Assertion Time

* Assertion Time Skew

  Grace period in seconds for the `NotBefore` time in assertions.

#### Basic Authentication

* Enabled, User Name, Password

  When enabled, authenticate with the specified credentials at SOAP endpoints.

#### Client Authentication

* Exclude Client Certificate from Metadata

  When enabled, don't export the client certificate in the SP metadata.

### Assertion Processing tab

#### Attribute Mapper

Extension point to map the SP attributes included in the SAML assertion.

* Attribute Mapper

  The Java class for the default implementation, which sets attributes in the user profile or properties in the session.

  Don't edit this field.

  Default: `com.sun.identity.saml2.plugins.DefaultSPAttributeMapper`

* Attribute Map

  Maps SAML attributes to user profile attributes or session properties.

  The Key is a SAML attribute from the assertion. The Value is the profile attribute or session property.

  By default, the SP maps SAML attributes to session properties with the same names. When the SP creates a profile during auto-federation, the SP maps SAML attributes to the new user profile.

  The special mapping `Key: *, Value: *` maps each attribute in the assertion to a session property or profile attribute with the same name. For example, if the SP receives `mail` and `givenName` in the assertion, it maps them to `mail` and `givenName`.

  Remove the special mapping and add key pairs to the map if:

  * (Auto-federation) The attributes in the IdP's and the SP's identity stores do not match.

  * You need control over the names of the session properties.

  * You need control over the attributes to map because the IdP adds too many to the assertion.

#### Auto Federation

* Enabled

  When enabled, automatically federate the user's accounts at different providers based on the specified SAML attribute.

* Attribute

  The SAML attribute to match accounts at different providers.

#### Account Mapper

* Account Mapper

  The Java class for the default implementation to map remote users to local user profiles.

* Use Name ID as User ID

  When selected, fall back to the NameID from the assertion to find the user.

* Transient User

  When set, map all transient users from the IdP to this profile.

#### Artifact Message Encoding

* Artifact Message Encoding

  The message encoding format for artifacts.

#### URL

* Local Authentication URL

  If set, overrides the default redirect URL to use after validating the SAML 2.0 assertion from the IdP.

  Use this setting, for example, if you have created a custom UI for federation.

  In integrated mode, Advanced Identity Cloud appends query string parameters to this URL. The parameters contain details to let Advanced Identity Cloud continue the authentication journey.

  In standalone mode, Advanced Identity Cloud redirects users to the specified URL and appends a `goto` parameter, identifying the next redirect URL for the user.

  To make sure a valid tree is configured, use [Redirect Tree](#config-redirect-tree) instead. However, if configured, the value for `Local Authentication URL` overrides `Redirect Tree Name`.

* Intermediate URL

  A URL to redirect the user to after authentication but before the original URL requested.

* External Application Logout URL

  The URL to send an HTTP POST with all cookies when receiving a logout request. Add a user session property by including it as a query string parameter named `appsessionproperty`.

#### Redirect Tree

* Redirect Tree Name

  If specified, Advanced Identity Cloud redirects to this journey after validating the SAML2 assertion from the IdP.

  For IdP-initiated SSO, you must set either `Redirect Tree Name` or `Local Authentication URL`, otherwise the SP fails to process the assertion and returns an invalid request error.

  If you provide a value for both settings, Advanced Identity Cloud prioritizes `Local Authentication URL`.

  You can't delete a journey if it's set as the value for `Redirect Tree Name`.

  Find information about setting a redirect journey in [Redirect to a journey on the hosted SP](configure-providers.html#config-redirect-tree).

* Default Relay State URL

  The URL to redirect users to after completing the request. Advanced Identity Cloud uses this if the response does not specify the `RelayState`.

#### Adapter

* Adapter

  A Java class to perform application-specific processing during the federation process.

* Adapter Environment

  Environment variables Advanced Identity Cloud passes to the adapter class.

### Services tab

* MetaAlias

  Read-only alias to locate the provider's entity identifier, specified as `/realm-name/provider-name`; for example: `/alpha/mySP`.

#### SP Service Attributes

* Single Logout Service

  The endpoints to manage SLO depending on the SAML binding.

* Manage NameID Service

  The endpoints to manage NameIDs depending on the SAML binding.

- Assertion Consumer Service

  The endpoints to consume assertions, where the order corresponds to the index of the URL in the standard metadata.

  The scheme, FQDN, and port configured must exactly match the SPs settings in its metadata.

  If the base URL service is configured, Advanced Identity Cloud uses it to determine the SP's endpoint URL.

  If the URL doesn't match, the SAML 2.0 flow fails and Advanced Identity Cloud logs an `Invalid Assertion Consumer Location specified` message.

  Set the HTTP-Artifact and HTTP-POST service locations to `AuthConsumer` for [integrated mode](saml2-integrated-mode.html).

### Advanced tab

#### SAE Configuration

* SP URL

  The endpoint to manage SAE requests.

* SP Logout URL

  The SP endpoint to process global logout requests.

* Application Security Configuration

  Encryption settings for SAE.

#### ECP Configuration

* Request IDP List Finder Implementation

  A Java class to return a list of preferred IdPs trusted for the SAML ECP profile.

  Default: `com.sun.identity.saml2.plugins.ECPIDPFinder`

* Request IDP List Get Complete

  A URI reference to retrieve the complete list of IdPs if the `IDPList` element is not complete.

* Request IDP List

  A list of IdPs for the ECP client or proxy to contact. The default finder implementation uses this.

#### IDP Proxy

* IDP Proxy

  When enabled, Advanced Identity Cloud adds a `Scoping` element to the authentication request for proxying.

* Introduction

  When enabled, use introductions to find the proxy IDP.

* Proxy Count

  The maximum number of proxy identity providers.

* IDP Proxy List

  A list of URIs for preferred proxy IDPs.

#### Session Synchronization

* Enabled

  When enabled, the SP sends backchannel SOAP logout requests to all IDPs when an authenticated session times out. An authenticated session can time out after the maximum idle time or maximum session time, for example.

#### Relay State URL List

* Relay State URL List

  List of accepted `RelayState` URLs.

  Advanced Identity Cloud validates the `RelayState` redirection URLs against this list during SLO. Advanced Identity Cloud only allows redirection to `RelayState` URLs in this list or matching the tenant domain; otherwise, a browser error occurs.

  Use the pattern matching rules in [Success and failure redirection URLs](../am-authentication/redirection-url-precedence.html) to specify URLs.

## Remote SP configuration

After you've set up a remote SP, configure it under Native Consoles > Access Management > Realms > *Realm Name* > Applications > Federation > Entity Providers > *Provider Name*.

### Assertion Content

The following properties appear under the Assertion Content tab:

#### Signing and Encryption

* Request/Response Signing

  The requests and responses that the SP requires the IdP to sign digitally.

* Encryption

  The elements that the SP requires the IdP to encrypt.

  * Attribute Encryption – When selected, the IDP must encrypt SAML attributes.

  * Assertion Encryption – When selected, the IDP must encrypt SAML assertions.

  * NameID Encryption – When selected, IDP must encrypt NameID elements.

* Algorithms

  * Signing Algorithm – The signing algorithm the SP will use.

  * Digest Algorithm – The digest algorithm the SP will use.

  * Encryption Algorithm – The encryption algorithm the SP will use.

#### NameID Format

* NameID Format List – The supported name identifiers for users who are shared between providers for single sign-on.

* NameID Value Map – Map the NameID format to a user profile attribute, for example:

  `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress=mail` or `urn:oasis:names:tc:SAML:2.0:nameid-format:persistent=objectGUID;binary`.

  * `Key` – The Name ID format to map, for example: `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`

  * `Value` – The profile attribute, for example: `mail`.

  * `Binary` – Indicates that the profile attribute is binary and should be Base64-encoded when used as the NameID value.

  If the specified NameID format is used in the protocol, the corresponding profile attribute value is used as the NameID in the Subject assertion element. This mapping overrides *all* the values defined in the NameID Value Map on the hosted IdP. For example, if a NameID Value Map is defined for the SP and a request is made with a specific NameID Format that only exists on the IdP, it will fail.

* Disable NameID Persistence Disables the storage of NameID values at the IdP when generating an assertion for this remote SP.

  Default value: `false`

#### Secrets

* Secret Label Identifier – Identifier used to create a secret label for mapping to a secret in the secret store.

  Advanced Identity Cloud uses this label to create a specific secret label for this entity provider. The secret label takes the form `am.applications.federation.entity.providers.saml2.identifier.basicauth` where identifier is the value of Secret Label Identifier. The label can only contain characters `a-z`, `A-Z`, `0-9`, and periods (`.`). It can't start or end with a period.

  If you change the Secret Label Identifier for a specific entity provider, any corresponding mappings are deleted, unless they're referenced by other entity providers.

  |   |                                                                                                                                                                                                                                                                                |
  | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  |   | If you specify a value for Secret Label Identifier, and Advanced Identity Cloud finds a mapping to this secret label in the secret store, the value of the Password field is ignored. For basic authentication, there is no *default* secret label for the realm, or globally. |

#### Basic Authentication

* Enabled – Require authentication with the specified username and password at SOAP endpoints.

* User Name – The username used to authenticate at SOAP endpoints.

* Password – The password used to authenticate at SOAP endpoints.

  |   |                                                                                                                                                                                                                                                                                |
  | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  |   | If you specify a value for Secret Label Identifier, and Advanced Identity Cloud finds a mapping to this secret label in the secret store, the value of the Password field is ignored. For basic authentication, there is no *default* secret label for the realm, or globally. |

### Assertion Processing

#### Attribute Mapper

* Attribute Map

  Override mappings from assertion attributes to user profile attributes at the IdP.

#### Artifact Message Encoding

* Encoding

  The message encoding format for artifacts.

### Services

The following properties appear under the Services tab:

#### SP Service Attributes

* Single Logout Service

  The endpoints to manage SLO depending on the SAML binding.

* Manage NameID Service

  The endpoints to manage NameIDs depending on the SAML binding.

* Assertion Consumer Service

  The endpoints to consume assertions, where the order corresponds to the index of the URL in the standard metadata.

### Advanced settings

#### Request Processing

* Skip Endpoint Validation For Signed Requests

  When enabled, Advanced Identity Cloud doesn't verify assertion consumer service (ACS) URLs in SAML authentication requests. The ACS URL can contain dynamic query parameters, for example.

  The SAML 2.0 specification requires ACS URL verification. When you enable this, the SP must digitally sign the authentication request; in Assertion Content > Signing and Encryption > Request/Response Signing, enable Authentication Requests Signed. If Advanced Identity Cloud receives an unsigned authentication request, it returns an error.

#### SAE Configuration

* SP URL

  The endpoint to manage SAE requests.

* SP Logout URL

  The SP endpoint to process global logout requests.

#### IDP Proxy

* IDP Proxy enabled

  When enabled, authentication requests from the SP can be proxied.

* Proxy all requests

  When enabled, Advanced Identity Cloud proxies every authentication request from the SP, even if the `Scoping` element is missing.

  Set IDP Proxy enabled for this setting to take effect.

* Introduction enabled

  When enabled, use introductions to find the proxy IdP.

  This property requires a non-default *SAML2IDPProxyFRImpl* implementation.

* Use IDP Finder

  When enabled, Advanced Identity Cloud uses the IDP finder service to determine the proxy IDP.

* Proxy Count

  The maximum number of proxy identity providers. Advanced Identity Cloud sets the specified value in the `Scoping` element of proxied authentication requests.

  Enable Proxy all requests for this setting to take effect.

* IDP Proxy List

  A list of URIs for preferred proxy IdPs.

#### Tree Name

* Tree Name

  If configured, Advanced Identity Cloud redirects the remote SP to the specified journey, ignoring the configured authentication context mapper and existing sessions. The redirect contains a transaction condition advice to ensure the journey is run.

  You can access the requested authentication context and configured mappings by including a [Scripted Decision node](https://docs.pingidentity.com/auth-node-ref/latest/scripted-decision.html) in the journey that queries the `samlApplication` script binding.

  |   |                                                                                                                                                                                                                                                                                                                                       |
  | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  |   | To prevent users from authenticating directly through this journey, either for security reasons or because the journey is insufficient as a complete authentication service, configure it as a [transactional authentication journey](../am-authentication/configure-authentication-trees.html#configure-transactional-auth-journey). |

  Learn about SAML 2.0 app journeys in [Configure a SAML 2.0 application journey](configure-providers.html#samlapp-journey).

#### Application Context

* Application Context Enabled

  This setting controls the availability of the application context in SAML 2.0 flows through the `samlApplication` binding in [Scripted Decision node scripts](../am-scripting/scripting-api-node.html#samlapp-binding).

  Choose from the following options:

  * Default: Inherits the value from [`Enable Application Context`](#saml-idp-enable-app-context) in the hosted IdP configuration.

  * Enabled: The application context is always available.

  * Disabled: The application context is never available.

## Circle of trust

To edit circle of trust settings, go to Native Consoles > Access Management > Realms > *Realm Name* > Applications > Federation > Circle of Trust > *Circle of Trust Name*.

* Name

  String to refer to the circle of trust.

  You can't change its Name after creation.

* Description

  Short description for the circle of trust.

* Status

  Whether this circle of trust is operational.

* Entity Providers

  Known hosted and remote IdPs and SPs participating in this circle of trust.

* SAML2 Writer Service URL

  SAML 2.0 service to write IdP entity identifiers to common domain cookies after successful authentication for IdP discovery; for example: `https://[.var]##_<tenant-env-fqdn>_##/am/saml2writer`.

* SAML2 Reader Service URL

  SAML 2.0 service to read ID entity identifiers from common domain cookies for IdP discovery; for example: `https://[.var]##_<tenant-env-fqdn>_##/am/saml2reader`.
