-
In the 3DPassport Control Center, click Integration, then the
SAML tab and open the Service Provider
mode panel.
-
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.
Note:
Change the Metadata/Message signature algorithm. By
default, the signature algorithm used is RSA-SHA256. For on-premises installation, you
can change it by editing the following configuration file as follows:
<tomee>/webapps/<3dpassport>/WEB-INF/spring-configuration/applicationContext-security.xml:
<!-- Initialization of OpenSAML library -->
<bean class="com.dassault_systemes.dspassport.iamweb.saml.SAMLBootstrap">
<property name="signingAlgorithm" value="http://www.w3.org/2001/04/xmldsig-more#rsa-sha512" />
</bean>
Typical values are: http://www.w3.org/2000/09/xmldsig#rsa-sha1
http://www.w3.org/2001/04/xmldsig-more#rsa-sha256
http://www.w3.org/2001/04/xmldsig-more#rsa-sha512 More details about
supported signature algorithms
here: https://www.w3.org/TR/2013/NOTE-xmlsec-algorithms-20130411
General options are:
Security options:
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.
- 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.
- if you cannot enforce HTTP-POST binding only on your IDP side, you can optionally
enforce this binding in 3DPassport by editing the following configuration file in 3DPassport:
<tomee>/webapps/<3dpassport>/WEB-INF/spring-configuration/applicationContext-security.xml
and add the lines: <property name="bindingsSSO">
<list><value>post</value></list>
</property>
<property name="bindingsSLO">
<list><value>post</value></list>
</property>as shown
below: <bean id="metadataGenerator" class="org.springframework.security.saml.metadata.MetadataGenerator">
<property name="entityBaseURL" ref="baseURL" />
<property name="bindingsSSO">
<list><value>post</value></list>
</property>
<property name="bindingsSLO">
<list><value>post</value></list>
</property>
</bean> then restart TomEE.
-
Click the Enable to activate the service provider.
-
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.
-
Configure the identity provider metadata.
-
Click in the SAML Identity
Provider section:
On premises only: You can add metadata of one identity
provider.
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.
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>
-
Click in the Active
column to disable or enable the identity provider. By default the IDP is
enabled.
-
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.
-
Click to edit.
-
Click Apply to save your settings.
-
Pair the identity provider with the
3DEXPERIENCE platform.
-
In the identity provider interface, import the 3DPassport SAML metadata file.
-
Map user information to the
3DEXPERIENCE platform accordingly.
For more information, refer to your identity provider documentation.
-
Return to the SAML tab, then toggle the Enable SAML
SP Federation option to enable SAML mode.
-
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.
- Optional:
To change the maximum authorized age of the SAML assertion in 3DPassport according to your identity providers settings, change the "maxAuthenticationAge"
property in 3DPassport configuration.
By default, 3DPassport will not accept the SAML assertion generated by the identity provider that is more than
one day old. The value set must be equal to (recommended, or at least greater than) the
equivalent property of your SAML identity provider. By default, it is valued to 86400s
= 1 day = 24h.
-
Open the following file
<tomee>/webapps/3dpassport/WEB-INF/spring-configuration/applicationContext-security.xml
-
Update the maxAuthenticationAge property (specified in seconds) in the
webSSOprofileConsumer bean:
<bean id="webSSOprofileConsumer"
class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl">
<property name="maxAuthenticationAge" value="86400" />
</bean>
|