Thanks to visit codestin.com
Credit goes to github.com

Skip to content

App default creds #351

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

Closed
wants to merge 2 commits into from
Closed

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
@@ -1202,7 +1202,17 @@ def _serialize_request(self, request):

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