diff --git a/openid-connect-server/src/main/java/org/mitre/openid/connect/token/ConnectTokenEnhancer.java b/openid-connect-server/src/main/java/org/mitre/openid/connect/token/ConnectTokenEnhancer.java index e1207a2be..410915ac5 100644 --- a/openid-connect-server/src/main/java/org/mitre/openid/connect/token/ConnectTokenEnhancer.java +++ b/openid-connect-server/src/main/java/org/mitre/openid/connect/token/ConnectTokenEnhancer.java @@ -91,7 +91,7 @@ public class ConnectTokenEnhancer implements TokenEnhancer { JWSAlgorithm signingAlg; JWSAlgorithm clientAlg = client.getIdTokenSignedResponseAlg().getAlgorithm(); - if (clientAlg != JWSAlgorithm.NONE) { + if (clientAlg != null) { signingAlg = clientAlg; } else { signingAlg = jwtService.getDefaultSigningAlgorithm();