From dfd4fbae63e5d321c0d073c3fa8bbe3b4239822d Mon Sep 17 00:00:00 2001 From: Ray Lee Date: Tue, 15 Oct 2024 18:53:42 -0400 Subject: [PATCH] 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. --- .../services/common/security/SecurityUtils.java | 6 ++++++ 1 file changed, 6 insertions(+) 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", -- 2.47.3