IxorTalk / ixortalk.aws.cognito.jwt.security.filter

Spring Boot security filter for decoding Cognito JWT IdTokens
MIT License
88 stars 31 forks source link

When add invalid token and then add a valid token on first request it throws 500 internal server error. with exception com.nimbusds.jose.proc.BadJWSException: Signed JWT rejected: Invalid signature #22

Open HamzaShahidAli opened 4 years ago

HamzaShahidAli commented 4 years ago

When add invalid token and then add a valid token on first request it throws 500 internal server error. with exception com.nimbusds.jose.proc.BadJWSException: Signed JWT rejected: Invalid signature On Class AwsCognitoIdTokenProcessor claimsSet = configurableJWTProcessor.process(stripBearerToken(idToken), null);

How to fix this issue. But when send second request with the same token without changing any thing it work perfectly. What i observe is the issue came due to when 1st request is processing with valid token after using the invalid token it process once old token with new token, but i dont know how to stop doing this.