[java-plugin-shibd-oidc] branch main updated: Fix up remoted request in tests.

Codeberg noreply at shibboleth.net
Tue Jun 9 12:54:01 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-plugin-shibd-oidc.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd-oidc/commit/ec314f203f63835ce15d345101b25e2b29bf6d94

The following commit(s) were added to refs/heads/main by this push:
     new ec314f2  Fix up remoted request in tests.
ec314f2 is described below

commit ec314f203f63835ce15d345101b25e2b29bf6d94
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Jun 9 08:53:48 2026 -0400

    Fix up remoted request in tests.
---
 .../sp/oidc/flows/AbstractOIDCTokenConsumerFlowTest.java      | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/sp-oidc-conf-impl/src/test/java/net/shibboleth/sp/oidc/flows/AbstractOIDCTokenConsumerFlowTest.java b/sp-oidc-conf-impl/src/test/java/net/shibboleth/sp/oidc/flows/AbstractOIDCTokenConsumerFlowTest.java
index 5e2ed1d..6a75ad2 100644
--- a/sp-oidc-conf-impl/src/test/java/net/shibboleth/sp/oidc/flows/AbstractOIDCTokenConsumerFlowTest.java
+++ b/sp-oidc-conf-impl/src/test/java/net/shibboleth/sp/oidc/flows/AbstractOIDCTokenConsumerFlowTest.java
@@ -432,7 +432,10 @@ public abstract class AbstractOIDCTokenConsumerFlowTest extends AbstractSPFlowTe
         
         http.addmember(RemotedHttpServletRequest.METHOD).string("GET");
         http.addmember(RemotedHttpServletRequest.REMOTE_ADDR).string("192.168.1.1");
-        http.addmember(RemotedHttpServletRequest.REQUEST_URL).unsafe_string(TestConstants.RESPONSE_URL.getBytes(StandardCharsets.UTF_8));
+        http.addmember(RemotedHttpServletRequest.SCHEME).string("https");
+        http.addmember(RemotedHttpServletRequest.HOSTNAME).unsafe_string("sp.example.org".getBytes(StandardCharsets.UTF_8));
+        http.addmember(RemotedHttpServletRequest.PORT).integer(443);
+        http.addmember(RemotedHttpServletRequest.REQUEST_URI).unsafe_string("/Shibboleth.sso/callback".getBytes(StandardCharsets.UTF_8));
         final URI responseURI = response.toURI();
         http.addmember(RemotedHttpServletRequest.QUERY_STRING).string(Constraint
                 .isNotNull(responseURI.getQuery(), "Query string is null"));
@@ -456,8 +459,10 @@ public abstract class AbstractOIDCTokenConsumerFlowTest extends AbstractSPFlowTe
         
         http.addmember(RemotedHttpServletRequest.METHOD).string("POST");
         http.addmember(RemotedHttpServletRequest.REMOTE_ADDR).string("192.168.1.1");
-        http.addmember(RemotedHttpServletRequest.REQUEST_URL).unsafe_string(
-                TestConstants.RESPONSE_URL.getBytes(StandardCharsets.UTF_8));
+        http.addmember(RemotedHttpServletRequest.SCHEME).string("https");
+        http.addmember(RemotedHttpServletRequest.HOSTNAME).unsafe_string("sp.example.org".getBytes(StandardCharsets.UTF_8));
+        http.addmember(RemotedHttpServletRequest.PORT).integer(443);
+        http.addmember(RemotedHttpServletRequest.REQUEST_URI).unsafe_string("/Shibboleth.sso/callback".getBytes(StandardCharsets.UTF_8));
         http.addmember(RemotedHttpServletRequest.CONTENT_TYPE).string("application/x-www-form-urlencoded");
         if (response instanceof final AuthenticationSuccessResponse successResponse) {
             http.addmember(RemotedHttpServletRequest.BODY).unsafe_string(Constraint.isNotNull(URISupport.buildQuery(

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


More information about the commits mailing list