Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Populate scopes for gce.AppAssertionCredentials #524

Merged
merged 9 commits into from
Jun 28, 2016

Conversation

elibixby
Copy link
Contributor

Additionally provides support for custom GCE service accounts though an email kwarg, and fixes #523

@googlebot
Copy link
Collaborator

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@elibixby
Copy link
Contributor Author

@jonparrott I seem to have fouled up the tree somehow. Not sure why this isn't based cleanly on metadata, (which should be even with master)...

@theacodes
Copy link
Contributor

@elibixby can you give me access to your fork? I can fix the tree.

@elibixby
Copy link
Contributor Author

@jonparrott you should already have it!

@googlebot
Copy link
Collaborator

CLAs look good, thanks!

@theacodes
Copy link
Contributor

@elibixby tree fixed, please verify. You'll probably need to delete your local branch and pull the new version of it.

raise NotImplementedError(
'Cannot serialize credentials for GCE service accounts.')

def _retrieve_scopes(self, http_request):

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

return_value={'email': '[email protected]'})
def test_service_account_email(self, metadata):
return_value=SERVICE_ACCOUNT_INFO)
def test_retrieve_scopes(self, metadata):

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@theacodes
Copy link
Contributor

@elibixby getting close. 👍

@theacodes theacodes self-assigned this Jun 20, 2016
@@ -53,10 +50,14 @@ class AppAssertionCredentials(AssertionCredentials):
This credential does not require a flow to instantiate because it
represents a two legged flow, and therefore has all of the required
information to generate and refresh its own access tokens.

Note that credentials.service_account_email and credentials.scopes

This comment was marked as spam.

@theacodes
Copy link
Contributor

I'm pretty satisfied with this. @nathanielmanistaatgoogle do you want to take a look?

@elibixby
Copy link
Contributor Author

@jonparrott @nathanielmanistaatgoogle friendly ping, I know y'all are busy.

@theacodes
Copy link
Contributor

I'll give @nathanielmanistaatgoogle until tomorrow afternoon to respond before merging, and we can always address any post-merge comments.

@elibixby feel free to nag me tomorrow to merge.

@elibixby
Copy link
Contributor Author

@jonparrott Ping to merge =)

@theacodes theacodes merged commit 5454867 into googleapis:master Jun 28, 2016
@elibixby elibixby deleted the scopesplus branch June 28, 2016 20:39
@theacodes theacodes mentioned this pull request Jul 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove http call in gce.AppAssertionCredentials.service_account_email
3 participants