-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dex index overflow exception #1007
Fix dex index overflow exception #1007
Conversation
SignedJWT signedJWT = SignedJWT.parse(jwt); | ||
JWSVerifier verifier = new RSASSAVerifier((RSAPublicKey)publicKey); | ||
if (signedJWT.verify(verifier)) { | ||
return signedJWT.getJWTClaimsSet().getClaims(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to keep logging here to help devs to debug going further?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thanks!
return signedJWT.getJWTClaimsSet().getClaims(); | ||
} | ||
return null; | ||
} catch (Exception ex) { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to add exception logging here to be able determine cause of problem in future:
CodePushUtils.log(ex.getMessage());
CodePushUtils.log(ex.getStackTrace().toString());
…jwt #1002 use another lib - nimbus-jose-jwt
#1002