Skip to content

App default creds#351

Closed
mgilson wants to merge 2 commits intogoogleapis:masterfrom
mgilson:app-default-creds
Closed

App default creds#351
mgilson wants to merge 2 commits intogoogleapis:masterfrom
mgilson:app-default-creds

Conversation

@mgilson
Copy link

@mgilson mgilson commented Feb 14, 2017

Only authenticate individual requests in a batch if the credentials are non-None. Otherwise, assume that an appropriate authentication is being provided at a higher level (e.g. for the entire batch)

This should address #350

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 14, 2017
@mgilson mgilson force-pushed the app-default-creds branch 3 times, most recently from 62f4071 to 2b98e61 Compare February 15, 2017 07:42
if request.http is not None and hasattr(request.http.request,
'credentials'):
request.http.request.credentials.apply(headers)
credentials = request.http.request.credentials

This comment was marked as spam.

@theacodes
Copy link
Contributor

@mgilson thanks for doing this- heads up I'm pretty busy the next couple of days but I will try to get to this by friday.

@mgilson
Copy link
Author

mgilson commented Feb 15, 2017

Thanks for letting me know when to be looking into this again. I'm in no hurry -- We've already coded the workaround that I mentioned in the issue on our end so there's nothing mission critical for us. In other words, take your time. :-)

@theacodes
Copy link
Contributor

@mgilson sorry I got super backlogged on this. I think it might not be as easy as we think - this library has to support both oauth2client and google-auth. We might have to add some special logic to handle those. Let me find some time to look into this in more depth to see what's up.

@theacodes
Copy link
Contributor

Closing in favor of #376.

@theacodes theacodes closed this Jun 20, 2017
snarfed added a commit to snarfed/google-api-python-client that referenced this pull request Aug 29, 2017
re-fixes googleapis#350. it was originally fixed by c669a3b following discussion in googleapis#351 (comment) , but then that fix got lost in the next commit, googleapis@282fc88 .
snarfed added a commit to snarfed/google-api-python-client that referenced this pull request Aug 30, 2017
re-fixes googleapis#350. it was originally fixed by c669a3b following discussion in googleapis#351 (comment) , but then that fix got lost in the next commit, googleapis@282fc88 .
snarfed added a commit to snarfed/google-api-python-client that referenced this pull request Aug 30, 2017
re-fixes googleapis#350. it was originally fixed by c669a3b following discussion in googleapis#351 (comment) , but then that fix got lost in the next commit, googleapis@282fc88 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. status: acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants