From 051ca633a53fb3ea9206a486c8bd82b30c219c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20D=C3=A9nari=C3=A9?= Date: Wed, 10 Apr 2024 14:53:30 +0200 Subject: [PATCH] fix: [SAML] Some properties cannot be modified by configuration - EXO-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 --- README.md | 11 +++++++++++ .../gatein/conf/saml2/picketlink-sp.xml | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14eff577..a5b3fd19 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/packaging/src/main/resources/exo-saml2-config/gatein/conf/saml2/picketlink-sp.xml b/packaging/src/main/resources/exo-saml2-config/gatein/conf/saml2/picketlink-sp.xml index 48976565..5003ca98 100644 --- a/packaging/src/main/resources/exo-saml2-config/gatein/conf/saml2/picketlink-sp.xml +++ b/packaging/src/main/resources/exo-saml2-config/gatein/conf/saml2/picketlink-sp.xml @@ -22,8 +22,7 @@ class="org.gatein.sso.agent.saml.PortalSAML2LogOutHandler"/> - +