From: Ray Lee Date: Tue, 15 Oct 2024 22:53:42 +0000 (-0400) Subject: DRYD-1518: Add NameID back to default username probes. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=dfd4fbae63e5d321c0d073c3fa8bbe3b4239822d;p=tmp%2Fjakarta-migration.git DRYD-1518: Add NameID back to default username probes. This shouldn't have been removed, because it's a breaking change. It needs to wait for a major release. --- diff --git a/services/common/src/main/java/org/collectionspace/services/common/security/SecurityUtils.java b/services/common/src/main/java/org/collectionspace/services/common/security/SecurityUtils.java index adc275388..ba9d2fc41 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/security/SecurityUtils.java +++ b/services/common/src/main/java/org/collectionspace/services/common/security/SecurityUtils.java @@ -77,8 +77,14 @@ public class SecurityUtils { private static final List DEFAULT_SAML_ASSERTION_USERNAME_PROBES = new ArrayList<>(); static { + // Set up default probes for SSO ID in a SAML assertion. + DEFAULT_SAML_ASSERTION_SSO_ID_PROBES.add(new AssertionNameIDProbeType()); + // Set up default probes for CSpace username in a SAML assertion. + + DEFAULT_SAML_ASSERTION_USERNAME_PROBES.add(new AssertionNameIDProbeType()); + String[] attributeNames = new String[]{ "urn:oid:0.9.2342.19200300.100.1.3", // https://www.educause.edu/fidm/attributes "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",