put 'kid' into JWS header, closes #784
parent
866186f611
commit
30e894a64a
|
@ -183,7 +183,11 @@ public class DefaultOIDCTokenService implements OIDCTokenService {
|
||||||
} else {
|
} else {
|
||||||
idClaims.setCustomClaim("kid", jwtService.getDefaultSignerKeyId());
|
idClaims.setCustomClaim("kid", jwtService.getDefaultSignerKeyId());
|
||||||
|
|
||||||
idToken = new SignedJWT(new JWSHeader(signingAlg), idClaims);
|
JWSHeader header = new JWSHeader(signingAlg, null, null, null, null, null, null, null, null, null,
|
||||||
|
jwtService.getDefaultSignerKeyId(),
|
||||||
|
null, null);
|
||||||
|
|
||||||
|
idToken = new SignedJWT(header, idClaims);
|
||||||
|
|
||||||
// sign it with the server's key
|
// sign it with the server's key
|
||||||
jwtService.signJwt((SignedJWT) idToken);
|
jwtService.signJwt((SignedJWT) idToken);
|
||||||
|
|
Loading…
Reference in New Issue