|
|
@ -178,9 +178,13 @@ public class DefaultOIDCTokenService implements OIDCTokenService {
|
|
|
|
// sign it with the client's secret
|
|
|
|
// sign it with the client's secret
|
|
|
|
signer.signJwt((SignedJWT) idToken);
|
|
|
|
signer.signJwt((SignedJWT) idToken);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
idClaims.setCustomClaim("kid", jwtService.getDefaultSignerKeyId());
|
|
|
|
idClaims.setCustomClaim("kid", jwtService.getDefaultSignerKeyId());
|
|
|
|
|
|
|
|
|
|
|
|
idToken = new SignedJWT(new JWSHeader(signingAlg), idClaims);
|
|
|
|
JWSHeader header = new JWSHeader(signingAlg);
|
|
|
|
|
|
|
|
header.setKeyID(jwtService.getDefaultSignerKeyId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|