[java-plugin-shibd-oidc] branch main updated: Fix test

Codeberg noreply at shibboleth.net
Thu Feb 5 11:08:43 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/165005d66a6140b0e866c6f680f9c00a0a8e497b

The following commit(s) were added to refs/heads/main by this push:
     new 165005d  Fix test
165005d is described below

commit 165005d66a6140b0e866c6f680f9c00a0a8e497b
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Thu Feb 5 11:08:36 2026 +0000

    Fix test
---
 .../shibboleth/sp/oidc/profile/AuthenticationRequestStateDataTest.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sp-oidc-api/src/test/java/net/shibboleth/sp/oidc/profile/AuthenticationRequestStateDataTest.java b/sp-oidc-api/src/test/java/net/shibboleth/sp/oidc/profile/AuthenticationRequestStateDataTest.java
index 0a1cd5d..f2c08ab 100644
--- a/sp-oidc-api/src/test/java/net/shibboleth/sp/oidc/profile/AuthenticationRequestStateDataTest.java
+++ b/sp-oidc-api/src/test/java/net/shibboleth/sp/oidc/profile/AuthenticationRequestStateDataTest.java
@@ -22,6 +22,7 @@ import java.time.Duration;
 import org.mockito.Mockito;
 import org.testng.annotations.Test;
 
+import com.nimbusds.oauth2.sdk.id.ClientID;
 import com.nimbusds.openid.connect.sdk.OIDCClaimsRequest;
 import com.nimbusds.openid.connect.sdk.claims.ClaimRequirement;
 import com.nimbusds.openid.connect.sdk.claims.ClaimsSetRequest;
@@ -124,6 +125,7 @@ public class AuthenticationRequestStateDataTest {
     void testFromCopiesAuthTimeRequiredCorrectly() {
         final OIDCAuthenticationRequest request = Mockito.mock(OIDCAuthenticationRequest.class);
         Mockito.when(request.getMaxAge()).thenReturn(Duration.ofSeconds(60));
+        Mockito.when(request.getClientID()).thenReturn(new ClientID("client_id"));
 
         final AuthenticationRequestStateData state =
                 AuthenticationRequestStateData.from(request, "https://op.example.org");

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


More information about the commits mailing list