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

audience verification, more flexible token decoding & decode key callback #212

Merged
merged 5 commits into from
Dec 7, 2018
Merged

audience verification, more flexible token decoding & decode key callback #212

merged 5 commits into from
Dec 7, 2018

Conversation

acrossen
Copy link
Contributor

@acrossen acrossen commented Dec 5, 2018

per #208

@pep8speaks
Copy link

pep8speaks commented Dec 5, 2018

Hello @acrossen! Thanks for updating the PR.

Line 87:91: E501 line too long (101 > 90 characters)
Line 88:91: E501 line too long (104 > 90 characters)

Comment last updated on December 06, 2018 at 19:33 Hours UTC

Copy link
Owner

@vimalloc vimalloc left a comment

Choose a reason for hiding this comment

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

This is looking good! I left a few notes for minor changes in a couple places. If we can get those updated I would feel comfortable merging this 👍

flask_jwt_extended/__init__.py Outdated Show resolved Hide resolved
flask_jwt_extended/jwt_manager.py Outdated Show resolved Hide resolved
flask_jwt_extended/tokens.py Outdated Show resolved Hide resolved
flask_jwt_extended/utils.py Show resolved Hide resolved
tests/test_decode_tokens.py Outdated Show resolved Hide resolved
@vimalloc
Copy link
Owner

vimalloc commented Dec 6, 2018

Thanks @acrossen that looks good. One last question for you (sorry I missed this in the original review). Do we need to add an error handler for the InvalidAudienceError in here: https://github.com/vimalloc/flask-jwt-extended/blob/master/flask_jwt_extended/jwt_manager.py#L95

It would be awesome if we could add one more unit test to cover that code path, ie that in a real flask request, giving a token with a bad aud will trigger the self._invalid_token_callback function.
But otherwise this looks great.

Nice job putting this together, and thanks for the hard work you’ve done on it! 👍

@vimalloc vimalloc merged commit 234aa6e into vimalloc:master Dec 7, 2018
@coveralls
Copy link

coveralls commented Dec 8, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 03a5a57 on acrossen:google_oidc_token_validation into 6fe88c7 on vimalloc:master.

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.

4 participants