Skip to content

Commit

Permalink
fix: revocation signed with Core key
Browse files Browse the repository at this point in the history
  • Loading branch information
rglauco committed Oct 10, 2024
1 parent 0f818fc commit 12d3bc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void sendRevocationRequest(
.put("exp", JWTHelper.getExpiresOn())
.put("jti", UUID.randomUUID().toString());

JWKSet jwkSet = JWTHelper.getJWKSetFromJSON(clientConf.getJwksFed());
JWKSet jwkSet = JWTHelper.getJWKSetFromJSON(clientConf.getJwksCoreByUse(KeyUse.SIGNATURE));

String clientAssertion = jwtHelper.createJWS(payload, jwkSet);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,13 @@ public void testClass3() {
WireMock.forbidden()
));

JWKSet jwks = JWTHelper.getJWKSetFromJWK(options.getJwkFed());
//JWKSet jwks = JWTHelper.getJWKSetFromJWK(options.getJwkFed());
JWKSet jwks = RPTestUtils.getJwksCoreByUse(JWTHelper.getJWKSetFromJSON(options.getJwkCore()), KeyUse.SIGNATURE);

FederationEntity clientConf = new FederationEntity();

clientConf.setSubject(RELYING_PARTY);
clientConf.setJwksFed(jwks.toString(false));
clientConf.setJwksCore(jwks.toString(false));

helper.sendRevocationRequest(null, null, SPID_PROVIDER + "test", clientConf);
}
Expand All @@ -352,12 +353,13 @@ public void testClass3() {
WireMock.ok()
));

JWKSet jwks = JWTHelper.getJWKSetFromJWK(options.getJwkFed());
//JWKSet jwks = JWTHelper.getJWKSetFromJWK(options.getJwkFed());
JWKSet jwks = RPTestUtils.getJwksCoreByUse(JWTHelper.getJWKSetFromJSON(options.getJwkCore()), KeyUse.SIGNATURE);

FederationEntity clientConf = new FederationEntity();

clientConf.setSubject(RELYING_PARTY);
clientConf.setJwksFed(jwks.toString(false));
clientConf.setJwksCore(jwks.toString(false));

helper.sendRevocationRequest(null, null, SPID_PROVIDER + "test", clientConf);
}
Expand Down

0 comments on commit 12d3bc4

Please sign in to comment.