[java-idp-plugin-oidc-rp] branch main updated: Fix tests because of change to default audience value

Phil Smart philip.smart at jisc.ac.uk
Mon Jun 16 14:33:10 UTC 2025


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

philsmart pushed a commit to branch main
in repository java-idp-plugin-oidc-rp.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-oidc-rp.git;a=commit;h=0f3ff9cf424a530d2287c6eb27becc2060684eb6

The following commit(s) were added to refs/heads/main by this push:
     new 0f3ff9c  Fix tests because of change to default audience value
0f3ff9c is described below

commit 0f3ff9cf424a530d2287c6eb27becc2060684eb6
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Mon Jun 16 15:33:04 2025 +0100

    Fix tests because of change to default audience value
---
 .../impl/InitializeOAuth2ClientAuthenticationMethodHandlerTest.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/idp-oidc-rp-impl/src/test/java/net/shibboleth/idp/plugin/authn/oidc/rp/impl/InitializeOAuth2ClientAuthenticationMethodHandlerTest.java b/idp-oidc-rp-impl/src/test/java/net/shibboleth/idp/plugin/authn/oidc/rp/impl/InitializeOAuth2ClientAuthenticationMethodHandlerTest.java
index 7102f09..98a80ef 100644
--- a/idp-oidc-rp-impl/src/test/java/net/shibboleth/idp/plugin/authn/oidc/rp/impl/InitializeOAuth2ClientAuthenticationMethodHandlerTest.java
+++ b/idp-oidc-rp-impl/src/test/java/net/shibboleth/idp/plugin/authn/oidc/rp/impl/InitializeOAuth2ClientAuthenticationMethodHandlerTest.java
@@ -147,7 +147,7 @@ public class InitializeOAuth2ClientAuthenticationMethodHandlerTest extends Abstr
         assertEquals(clientSecretJwt.getJWTAuthenticationClaimsSet().getIssuer().toString(), CLIENT_ID);        
         assertEquals(clientSecretJwt.getJWTAuthenticationClaimsSet().getAudience().size(),1);
         assertEquals(clientSecretJwt.getJWTAuthenticationClaimsSet().getAudience().get(0).toString(),
-                "https://op.example.com");
+                "https://www.certification.openid.net/test/a/test_rp_proxy/token");
         assertNotNull(clientSecretJwt.getJWTAuthenticationClaimsSet().getJWTID());
         assertNotNull(clientSecretJwt.getJWTAuthenticationClaimsSet().getExpirationTime());
     }
@@ -197,6 +197,7 @@ public class InitializeOAuth2ClientAuthenticationMethodHandlerTest extends Abstr
     @Test(expectedExceptions = MessageHandlerException.class)
     public void testInitialiseClientSecretJWT_NoAudience_Fail() throws Exception {
         partyConfig.setTokenEndpointAuthMethod("client_secret_jwt");
+        partyConfig.setUseTargetedEndpointAsJWTAudience(false);
         
         final SecurityParametersContext secContext = new SecurityParametersContext();
         final SignatureSigningParameters secParams = new SignatureSigningParameters();
@@ -268,7 +269,7 @@ public class InitializeOAuth2ClientAuthenticationMethodHandlerTest extends Abstr
         assertEquals(privateKeyJwt.getJWTAuthenticationClaimsSet().getIssuer().toString(), CLIENT_ID);        
         assertEquals(privateKeyJwt.getJWTAuthenticationClaimsSet().getAudience().size(),1);
         assertEquals(privateKeyJwt.getJWTAuthenticationClaimsSet().getAudience().get(0).toString(),
-                "https://op.example.com");
+                "https://www.certification.openid.net/test/a/test_rp_proxy/token");
         assertNotNull(privateKeyJwt.getJWTAuthenticationClaimsSet().getJWTID());
         assertNotNull(privateKeyJwt.getJWTAuthenticationClaimsSet().getExpirationTime());
     }

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


More information about the commits mailing list