Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Introduce the 'application default credentials' concept. #24

Merged
merged 1 commit into from
Jul 11, 2014

Conversation

orestica
Copy link
Contributor

@orestica orestica commented Jul 9, 2014

Replace the 'default credentials' concept with the 'application default credentials' concept.

@craigcitro
Copy link
Contributor

So one broader question -- I had thought that part of the simplification here would involve taking out a lot of the logic around the "well-known file". Had I misunderstood, or is that going to happen in a separate change?

@@ -919,7 +921,8 @@ class GoogleCredentials(OAuth2Credentials):
PROJECT = 'bamboo-machine-422' # replace this with one of your projects
ZONE = 'us-central1-a' # replace this with the zone you care about

service = build('compute', 'v1', credentials=GoogleCredentials.get_default())
service = build('compute', 'v1',
credentials=GoogleCredentials.get_application_default())

This comment was marked as spam.

This comment was marked as spam.

@orestica
Copy link
Contributor Author

orestica commented Jul 9, 2014

I am not sure about that.
Maybe Anthony can clarify things here.

On Wed, Jul 9, 2014 at 4:23 PM, Craig Citro [email protected]
wrote:

So one broader question -- I had thought that part of the simplification
here would involve taking out a lot of the logic around the "well-known
file". Had I misunderstood, or is that going to happen in a separate change?


Reply to this email directly or view it on GitHub
#24 (comment).

Orest Bolohan

Software Engineer
Cloud/TI Identity and Access Management Services
Google Inc.
Mountain View, CA

(650) 214 3458
[email protected]


service = build("compute", "v1", credentials=GoogleCredentials.get_default())
service = build('compute', 'v1',
credentials=GoogleCredentials.get_application_default())

This comment was marked as spam.

@craigcitro
Copy link
Contributor

two little nits and we're good to go.

@orestica
Copy link
Contributor Author

Done.

Thank you for your review, Craig.

All the best,
Orest

On Fri, Jul 11, 2014 at 9:32 AM, Craig Citro [email protected]
wrote:

two little nits and we're good to go.


Reply to this email directly or view it on GitHub
#24 (comment).

Orest Bolohan

Software Engineer
Cloud/TI Identity and Access Management Services
Google Inc.
Mountain View, CA

(650) 214 3458
[email protected]

@craigcitro
Copy link
Contributor

all is well -- do you want to squash or should I just merge?

@orestica
Copy link
Contributor Author

Let me exercise my squashing capabilities.
I'll let you know when it's ready.

Thank you,
Orest

On Fri, Jul 11, 2014 at 10:06 AM, Craig Citro [email protected]
wrote:

all is well -- do you want to squash or should I just merge?


Reply to this email directly or view it on GitHub
#24 (comment).

Orest Bolohan

Software Engineer
Cloud/TI Identity and Access Management Services
Google Inc.
Mountain View, CA

(650) 214 3458
[email protected]

@orestica
Copy link
Contributor Author

Please take a look now, Craig.

Thank you,
Orest

On Fri, Jul 11, 2014 at 10:08 AM, Orest Bolohan [email protected] wrote:

Let me exercise my squashing capabilities.
I'll let you know when it's ready.

Thank you,
Orest

On Fri, Jul 11, 2014 at 10:06 AM, Craig Citro [email protected]
wrote:

all is well -- do you want to squash or should I just merge?


Reply to this email directly or view it on GitHub
#24 (comment).

Orest Bolohan

Software Engineer
Cloud/TI Identity and Access Management Services
Google Inc.
Mountain View, CA

(650) 214 3458
[email protected]

Orest Bolohan

Software Engineer
Cloud/TI Identity and Access Management Services
Google Inc.
Mountain View, CA

(650) 214 3458
[email protected]

craigcitro added a commit that referenced this pull request Jul 11, 2014
Introduce the 'application default credentials' concept.
@craigcitro craigcitro merged commit c5226c2 into googleapis:master Jul 11, 2014
@craigcitro
Copy link
Contributor

just merged. from my phone.

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.

3 participants