]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
DRYD-1518: Add NameID back to default username probes.
authorRay Lee <ray.lee@lyrasis.org>
Tue, 15 Oct 2024 22:53:42 +0000 (18:53 -0400)
committerRay Lee <ray.lee@lyrasis.org>
Tue, 15 Oct 2024 22:53:42 +0000 (18:53 -0400)
This shouldn't have been removed, because it's a breaking change. It needs to wait for a major release.

services/common/src/main/java/org/collectionspace/services/common/security/SecurityUtils.java

index adc275388eb674f510e16d7b8c44f8b529b8089c..ba9d2fc415b8be95e81bddf829c8fb57d29782ee 100644 (file)
@@ -77,8 +77,14 @@ public class SecurityUtils {
     private static final List<Object> 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",