Configuring Federated SAML Mode

You can configure 3DPassport to federate with an external third-party SSO system and delegate authentication to the system using the SAML protocol.

Therefore, the federation prompts users to associate their accounts. For more information, see Logging in using delegated authentication on the Public Cloud.

Note:
  • 3DPassport only supports service provider initiated delegation.
  • If you have activated SAML by mistake, you can always connect with your admin account using the following endpoint: 3DPassportServiceURL/admin-tools/v2/login
Important: Make sure that there are no pending invited users before you enable the delegated authentication.


Before you begin: Review operating principles and identify key components explained in
See Also
Adding and Verifying Domain for Implicit Mapping
Using Implicit Mapping
  1. In the 3DPassport Control Center, click Integration, then the SAML tab and open the Service Provider mode panel.
  2. Configure the service provider metadata.

    In the Metadata section, click to configure the metadata:

    SAML requires you to first configure the service provider metadata. Service provider metadata contains keys, services, and URLs that define SAML endpoints of your application.

    Once created, provide the metadata to the identity providers to establish trust.

    General options are:

    Options Description
    Entity ID Contains the 3DPassport server host. Entity ID is a unique identifier for an identity or service provider. The value is included in the generated metadata.

    This field is prefilled with hostname and cannot be changed.

    Entity Base URL Contains 3DPassport server URL. Entity base URL serves as the base for generating URLs for this server. This value is prefilled and cannot change.

    This entry is not editable.

    Entity Alias Contains 3DPassport server host. The alias is an internal mechanism allowing collocating multiple service providers on one server. The alias must be unique. This value is prefilled and cannot change.

    This entry is not editable.

    Assertion Consumer Service URL Contains the endpoint on the service provider where authentication responses (SAML assertions) from the 3DPassport server are sent. This URL is used by the identity provider to deliver the authentication result after a successful login. This value is prefilled and cannot change.

    Security options:

    Option Description
    Signing key Key used for digital signatures of SAML messages. Public key will be included in the metadata.
    Encryption key Key used for digital encryption of SAML messages sent by 3DPassport. Public key will be included in the metadata.
    Sign metadata Specifies whether generated metadata must be digitally signed using the key defined in the Signing key property.
    Note: This option is not a default selection.
    Sign AuthN Requests Specifies whether the authentication requests sent to IDP must be signed.
    Require signed authentication Assertion from IDP Flag indicating to IDP that authentication assertion returned must be signed.
    Sign Logout Request Specifies whether logout requests sent to IDP must be signed.
    Require signed Logout Response from IDP Flag indicating to IDP that logout response returned must be signed.

    Binding options: Bindings are to be included in the metadata for WebSSO profile. Supported values are SSO HTTP-POST. The HTTP-Redirect binding (SAML assertion in query string) is not supported for Assertion delivery. HTTP-POST binding by the IDP is mandatory for the SAML delegation. You can enforce HTTP-POST for Authentication request by enforcing HTTP-POST only for SingleSignOnService when you generate your IDP metadata. The 3DPassport SAML entrypoint will loop over all bindings listed in the IDP metadata and will choose the first one supported. The supported bindings for the authentication request are: HTTP-Redirect, HTTP-POST.

    1. Click the Enable to activate the service provider.
    2. Click Apply to save and apply your settings.
    Once the service provider configuration has been saved, it is displayed in the Metadata section You can export your current metadata by clicking in the Export column.
  3. Configure the identity provider metadata.
    1. Click in the SAML Identity Provider section:

      On the cloud only: To create or add multiple identity providers, click .
      Option Description
      IdP Entity ID Specifies the EntityID of the IDP, if you import the metadata. This attribute is automatically filled.

      This entry is not editable.

      Content of your IdP metadata Copy the content of the metadata file and paste it in the text area.
      Allow user delegation for this domain Add the domain names that can be used to login to the 3DEXPERIENCE Platform. The user who belong to the domain defined here are directed to the associated IDP.
      Note: You cannot have same domain for an IDP.
      Enable Implicit Mapping Select this option to apply implicit mapping
      Username prefix for Implicit Mapping Add a text that appears as prefix to the auto-generated username. This is an optional field and useful to distinguish the username when implicit mapping is applied.
      Username suffix for Implicit Mapping Add a text that appears as suffix to the auto-generated username. This is an optional field and useful to distinguish the username when implicit mapping is applied.
      User conflict simulation Upload a .csv file and click Start Simulation. The simulation generates a report to specify which usernames and email id's coming from IDP are invalid of implicit mapping. For more information, see Using Implicit Mapping.
      Attribute mapping

      This section allows you to define which fields from the SAML assertion will be mapped and synchronized into 3DPassport. You can select the fields that will be retrieved from the SAML assertion and synchronized in the 3DPassport local database (private cloud or on premises).

      For SAML identity federation, email and username are mandatory, so it is required for both attributes provided in the SAML assertion. The attribute could be either provided through the saml:Subject:NameID entity or the saml:Attribute entities.

      Private Cloud with VPN or On Premises: Field like country is also required to access the 3DEXPERIENCE platform, but if it is not present in the SAML assertion, the end user is redirected to the update profile page to fill in the missing information.

      Therefore you must configure the Identity Provider accordingly to provide the attributes as discussed in the below table: Attribute Mapping.

      Enabled The IDP is enabled by default. You can deselect the option to change the default selection.
      Table 1. Attribute Mapping
      Public Cloud Private Cloud

      no VPN

      Private Cloud

      with VPN

      On Premises
      email [REQUIRED] [REQUIRED] [REQUIRED] [REQUIRED]
      username [REQUIRED] [REQUIRED] [REQUIRED] [REQUIRED]
      firstName [OPTIONAL] [OPTIONAL] [REQUIRED] [REQUIRED]
      lastName [OPTIONAL] [OPTIONAL] [REQUIRED] [REQUIRED]
      country [OPTIONAL] [OPTIONAL] [REQUIRED] [REQUIRED]

      Map service provider(3DPassport) attributes(left) to your identity provider attributes(right) for assertion.

      The fields listed in the combo box must be mapped in the identity provider accordingly. For example, for the lastName to be synchronized in 3DPassport, the identity provider must map the corresponding lastName field in its user repository (LDAP, for example ) that will be retrieved after authentication, to the corresponding SAML attribute.

      Notes:
      • Each attribute in mapping configuration must be unique. Reusing or duplicating attributes across multiple mapping entries is not supported and may lead to authentication failure or user provisioning anomalies.
      • If these fields (firstName, lastName) contain special characters, the special character is replaced by a " -".
      • The assertion attributes are case sensitive, they must have the same name, with the same case as defined in Map service provider (3DPassport).

      To ensure successful attribute mapping and proper user provisioning in 3DPassport, the username and email attributes received from the Identity Provider (IdP) must adhere to the following validation criteria.

      Criteria Attribute Name
      username email
      Supported Characters Alphanumeric (A–Z, a–z, 0–9), hyphen -, underscore _, period . Alphanumeric, ., _, %, +, - in the local part; alphanumeric, ., - in the domain. TLD must be 2–4 letters
      Unsupported Characters Spaces, @, accented letters, Unicode, all other special characters Spaces, Unicode, special characters outside the set above, blacklisted domains
      Maximum length 64 characters (minimum 2) 64 characters for the local part, 255 for the full address

      Here is an example of what is expected to be provided in the SAML assertion:

      <saml:Subject>
      <saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">myusername</saml:NameID>
      <saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
      <saml:SubjectConfirmationData Recipient="https://<myhostname>/saml/SSO/alias/<myhostname>" 
      NotOnOrAfter="2016-12-20T20:45:02.191Z" InResponseTo="a2458h5i1dc6h7fhebhcig04133a5f"/>
      </saml:SubjectConfirmation>
      </saml:Subject>
      …
      <saml:AttributeStatement>
      <saml:Attribute Name="email" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
      <saml:AttributeValue xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">myemail@somedomain.com
      </saml:AttributeValue>
      </saml:Attribute>
      <saml:Attribute Name="username" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
      <saml:AttributeValue xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">myusername
      </saml:AttributeValue>
      </saml:Attribute>
      <saml:Attribute Name="firstName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
      <saml:AttributeValue xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">My FirstName
      </saml:AttributeValue>
      </saml:Attribute>
      <saml:Attribute Name="country" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
      <saml:AttributeValue xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">USA
      </saml:AttributeValue>
      </saml:Attribute>
      <saml:Attribute Name="lastName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
      <saml:AttributeValue xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">My LastName
      </saml:AttributeValue>
      </saml:Attribute>
      </saml:AttributeStatement>

    2. Click in the Active column to disable or enable the identity provider. By default the IDP is enabled.
    3. Click , to test the configuration. Using this option, you can validate if the IDP configuration is correct. On clicking Test Configuration the details about configuration information and validation status appear in the web browser.
    4. Click to edit.
    5. Click Apply to save your settings.

    On the cloud only: A dialog box suggests you to check and update (if required) the identity provider configuration for your other platform(s) which is/are delegated to the same identity provider as this one. Perform the update or click Continue.

  4. Pair the identity provider with the 3DEXPERIENCE platform.
    1. In the identity provider interface, import the 3DPassport SAML metadata file.
    2. Map user information to the 3DEXPERIENCE platform accordingly.

    For more information, refer to your identity provider documentation.

  5. Return to the SAML tab, then toggle the Enable SAML SP Federation option to enable SAML mode.
  6. Log on to the 3DEXPERIENCE platform to test that SAML federation has been configured and enabled in 3DPassport.

    When attempting to log on to the 3DEXPERIENCE platform, the end user is first redirected to the third-party identity provider login page. After successful authentication by the identity provider, the user is redirected back to 3DEXPERIENCE platform.

    If all the required attributes to access the 3DEXPERIENCE platform have been retrieved from the SAML assertion, the user is then automatically authenticated and redirected back to the 3DEXPERIENCE platform (3DDashboard service).

    If certain attributes are missing from the SAML assertion, the user is redirected to the 3DPassport update page to update the end user's account. After providing the missing attributes and updated the account, the user is redirected back to the 3DEXPERIENCE platform.