[java-plugin-shibd] branch main updated: Wire in servlet request and add check for cached auth ID.
Scott Cantor
cantor.2 at osu.edu
Thu Jan 23 14:42:43 UTC 2025
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-plugin-shibd.
View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-shibd.git;a=commit;h=b23ee177d2627550ed550e6ce9f01bded37e0379
The following commit(s) were added to refs/heads/main by this push:
new b23ee17 Wire in servlet request and add check for cached auth ID.
b23ee17 is described below
commit b23ee177d2627550ed550e6ce9f01bded37e0379
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Jan 23 09:42:40 2025 -0500
Wire in servlet request and add check for cached auth ID.
---
.../net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml | 1 +
sp-conf-impl/src/test/java/net/shibboleth/sp/flows/PingFlowTest.java | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/sp-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml b/sp-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml
index 2940a52..ddda7b7 100644
--- a/sp-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml
+++ b/sp-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/abstract/sp-abstract-beans.xml
@@ -55,6 +55,7 @@
p:httpServletRequestSupplier-ref="shibboleth.HttpServletRequestSupplier" />
<bean id="EncodeAgentResponse" class="net.shibboleth.sp.profile.impl.EncodeAgentResponse" scope="prototype"
+ p:httpServletRequestSupplier-ref="shibboleth.HttpServletRequestSupplier"
p:httpServletResponseSupplier-ref="shibboleth.HttpServletResponseSupplier" />
<bean id="RecordResponseComplete" class="net.shibboleth.idp.profile.impl.RecordResponseComplete" scope="prototype" />
diff --git a/sp-conf-impl/src/test/java/net/shibboleth/sp/flows/PingFlowTest.java b/sp-conf-impl/src/test/java/net/shibboleth/sp/flows/PingFlowTest.java
index 9553fa9..49fc7d5 100644
--- a/sp-conf-impl/src/test/java/net/shibboleth/sp/flows/PingFlowTest.java
+++ b/sp-conf-impl/src/test/java/net/shibboleth/sp/flows/PingFlowTest.java
@@ -87,6 +87,10 @@ public class PingFlowTest extends AbstractSPFlowTest {
assertFlowExecutionOutcome(result.getOutcome());
final DDF obj = assertOutputMessageSuccess(result);
assert obj != null;
+
+ // Seems the mocks create a Java session ID of "1", we'll see if that holds.
+ Assert.assertEquals(obj.getmember("cached_auth").string(), "1");
+
final Long time = obj.getmember("epoch").longinteger();
Assert.assertTrue(time != null && time <= Instant.now().toEpochMilli() / 1000);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list