Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Fix ID token verification#87

Merged
theacodes merged 2 commits intomasterfrom
fix-verification
Nov 17, 2016
Merged

Fix ID token verification#87
theacodes merged 2 commits intomasterfrom
fix-verification

Conversation

@theacodes
Copy link
Copy Markdown
Contributor

@theacodes theacodes commented Nov 16, 2016

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

Copy link
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants