Skip to content
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

Throw TokenVerifificationError if the key ID is not known by cognito #259

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RudolfVonKrugstein
Copy link

If someone tries to verify a JWT Token, which has a Key ID not known to Cognito, an IndexError is currently thrown.

This fixes it so that a TokenVerificatinError is thrown.

Comment on lines +238 to +239
else:
return None
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
else:
return None
return None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants