Changed client algorithm check to look for null instead of JWSAlgorithm.NONE, which is a valid value.

pull/477/head
Amanda Anganes 11 years ago
parent 0059c7b4cc
commit 3eae6f2789

@ -91,7 +91,7 @@ public class ConnectTokenEnhancer implements TokenEnhancer {
JWSAlgorithm signingAlg; JWSAlgorithm signingAlg;
JWSAlgorithm clientAlg = client.getIdTokenSignedResponseAlg().getAlgorithm(); JWSAlgorithm clientAlg = client.getIdTokenSignedResponseAlg().getAlgorithm();
if (clientAlg != JWSAlgorithm.NONE) { if (clientAlg != null) {
signingAlg = clientAlg; signingAlg = clientAlg;
} else { } else {
signingAlg = jwtService.getDefaultSigningAlgorithm(); signingAlg = jwtService.getDefaultSigningAlgorithm();

Loading…
Cancel
Save