Skip to content

Commit

Permalink
fix: [SAML] Some properties cannot be modified by configuration - EXO…
Browse files Browse the repository at this point in the history
…-70965

Before this fix, property name-id cannot be modified by configuration
This commit add the property gatein.sso.saml.nameid.format to be able to configure it

Resolves Meeds-io/meeds#1856
  • Loading branch information
rdenarie committed Apr 10, 2024
1 parent 880e713 commit 137f9e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,14 @@ keytool -import -keystore jbid_test_keystore.jks -file SelfSignedCert_17Oct2013_
gatein.sso.idp.alias=idpalias
```
- Start eXo Platform as SP then test it

#### Configure NameId format
When using saml2-addon, exo needs the user identifier in the name-id field of the assertion.

To configure it, there is 2 options :
- On IDP side : some IDPs allows to force the name-id format neverming the name-id requested in the SAMLRequest assertion. In this case, you can configure
- persistent : the nameid will be a unique identifier, which will not change during this. This id must be the username in eXo
- unspecified : then you can choose a user attribute like username as name id
- On exo side : the property `gatein.sso.saml.nameid.format` allow to configure the wanted nameid format. By dafault, value is `urn:oasis:names:tc:SAML:2.0:nameid-format:persistent`. It can be changed to `urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified` if needed

gatein.sso.saml.nameid.format
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
class="org.gatein.sso.agent.saml.PortalSAML2LogOutHandler"/>
<Handler
class="org.picketlink.identity.federation.web.handlers.saml2.SAML2AuthenticationHandler">
<Option Key="NAMEID_FORMAT" Value="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"/>
</Handler>
<Option Key="NAMEID_FORMAT" Value="${gatein.sso.saml.nameid.format::urn:oasis:names:tc:SAML:2.0:nameid-format:persistent}"/> </Handler>
<Handler
class="org.picketlink.identity.federation.web.handlers.saml2.RolesGenerationHandler"/>

Expand Down

0 comments on commit 137f9e9

Please sign in to comment.