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

Fix ID token verification #87

Merged
merged 2 commits into from
Nov 17, 2016
Merged

Fix ID token verification #87

merged 2 commits into from
Nov 17, 2016

Conversation

theacodes
Copy link
Contributor

@theacodes theacodes commented Nov 16, 2016

  • Fix call to transport.Request.
  • Make jwt support base64 strings lacking padding characters.

Copy link
Contributor

@dhermes dhermes left a comment

Choose a reason for hiding this comment

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

You say "Fix", where was the break exposed?

bytes: The decoded value
"""
b64string = to_bytes(value)
padded = b64string + b'=' * (4 - len(b64string) % 4)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@theacodes
Copy link
Contributor Author

@dhermes when replacing some hand-rolled code that verified firebase auth tokens for an app engine sample.

@theacodes theacodes merged commit 97eb870 into master Nov 17, 2016
@theacodes theacodes deleted the fix-verification branch November 17, 2016 17:43
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.

None yet

2 participants