This repository has been archived by the owner on Nov 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 430
invalid_grant
failures under Python3
#125
Closed
tseaver opened this issue
Feb 3, 2015
· 4 comments
· Fixed by #126 or googleapis/google-cloud-python#676
Closed
invalid_grant
failures under Python3
#125
tseaver opened this issue
Feb 3, 2015
· 4 comments
· Fixed by #126 or googleapis/google-cloud-python#676
Comments
cc @anthmgoogle |
It's a formatting issue of bytes vs. string. In Python2: >>> body
'assertion=eyJ...' In Python3: >>> body
'assertion=b%22b%27eyJ...' Decoding, this is a bit of a mess:
Python2 >>> urlparse.parse_qs(WORKS)
{'assertion': ['eyJ...REDACTED...Q.eyJ...REDACTED...X0.3L2...REDACTED...Adg'],
'grant_type': ['urn:ietf:params:oauth:grant-type:jwt-bearer']} Python3 >>> urlparse.parse_qs(NOT_WORKS)
{'assertion': ['b"b\'eyJ...REDACTED...fQ\'.b\'eyJ...REDACTED...In0\'".v4M...REDACTED...g0'],
'grant_type': ['urn:ietf:params:oauth:grant-type:jwt-bearer']} |
@craigcitro Can you assign this issue to me? I am working on it. |
@dhermes it won't let me assign to anyone outside our org, unfortunately. |
dhermes
added a commit
to dhermes/oauth2client
that referenced
this issue
Feb 4, 2015
Fixes googleapis#125. NOTE: '%s.%s' does not behave the same between versions and should be removed throughout this library. I will be following this up with a set of regression tests (hopefully some of which will fail) and we can assess the damage of other uses of '%s'.
This was referenced Feb 4, 2015
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Mar 24, 2015
Fix googleapis/oauth2client#125 was pushed in 1.4.7 release.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Mar 24, 2015
Fix googleapis/oauth2client#125 was pushed in 1.4.7 release.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When running with the branch from googleapis/google-cloud-python#580:
GOOGLE_APPLICATION_CREDENTIALS
envvar, and run fine under Python2.gcloud-python
unit tests pass on that branch under Python2 and Python3.The text was updated successfully, but these errors were encountered: