[java-identity-provider] branch main updated: OSJ-466 - Add additional checks to trusted endpoint logic

Codeberg noreply at shibboleth.net
Mon Nov 9 17:45:42 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
https://codeberg.org/Shibboleth/java-identity-provider/commit/3a0e577c715b79da938949c1f40d38f51145bf00

The following commit(s) were added to refs/heads/main by this push:
     new 3a0e577c7 OSJ-466 - Add additional checks to trusted endpoint logic
3a0e577c7 is described below

commit 3a0e577c715b79da938949c1f40d38f51145bf00
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Nov 9 12:44:42 2026 -0500

    OSJ-466 - Add additional checks to trusted endpoint logic
---
 .../idp/saml/profile/impl/PopulateBindingAndEndpointContexts.java   | 6 ++++--
 .../saml/profile/impl/PopulateBindingAndEndpointContextsTest.java   | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/PopulateBindingAndEndpointContexts.java b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/PopulateBindingAndEndpointContexts.java
index 129e42c2f..c09caebeb 100644
--- a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/PopulateBindingAndEndpointContexts.java
+++ b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/PopulateBindingAndEndpointContexts.java
@@ -348,13 +348,15 @@ public class PopulateBindingAndEndpointContexts extends AbstractProfileAction {
             if (rpContext.getProfileConfig() instanceof SAMLArtifactAwareProfileConfiguration artpc) {
                 artifactConfiguration = artpc.getArtifactConfiguration(profileRequestContext);
             }
-            if (rpContext.getProfileConfig() instanceof BrowserSSOProfileConfiguration ssoConfig) {
+            if (rpContext.getRelyingPartyIdContextTree() instanceof SAMLPeerEntityContext peer &&
+                    rpContext.getProfileConfig() instanceof BrowserSSOProfileConfiguration ssoConfig) {
                 skipValidationSinceSigned =
                         inboundMessage instanceof AuthnRequest
                         && ssoConfig.isSkipEndpointValidationWhenSigned(profileRequestContext)
                         && !ssoConfig.isIgnoreRequestSignatures(profileRequestContext)
                         && SAMLBindingSupport.isMessageSigned(
-                                Constraint.isNotNull(imc, "No Inboud Message Context")); 
+                                Constraint.isNotNull(imc, "No Inboud Message Context"))
+                        && peer.isAuthenticated(); 
             }
         }
         
diff --git a/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/impl/PopulateBindingAndEndpointContextsTest.java b/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/impl/PopulateBindingAndEndpointContextsTest.java
index 4647dff27..6f96fd2e0 100644
--- a/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/impl/PopulateBindingAndEndpointContextsTest.java
+++ b/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/impl/PopulateBindingAndEndpointContextsTest.java
@@ -206,6 +206,7 @@ public class PopulateBindingAndEndpointContextsTest extends XMLObjectBaseTestCas
         MessageContext omc = prc.getOutboundMessageContext();
         assert omc!=null;
         omc.ensureSubcontext(SAMLPeerEntityContext.class).addSubcontext(mdCtx);
+        omc.ensureSubcontext(SAMLPeerEntityContext.class).setAuthenticated(true);
         
         Event event = action.execute(rc);
         ActionTestingSupport.assertEvent(event, SAMLEventIds.ENDPOINT_RESOLUTION_FAILED);
@@ -232,6 +233,7 @@ public class PopulateBindingAndEndpointContextsTest extends XMLObjectBaseTestCas
         sbc = imc.getSubcontext(SAMLBindingContext.class);
         assert sbc != null;
         sbc.setHasBindingSignature(true);
+        
         event = action.execute(rc);
         ActionTestingSupport.assertProceedEvent(event);
         omc = prc.getOutboundMessageContext();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list