Skip to content

Supporting initialization of credentials with dictionary arguments #48

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

Merged
merged 1 commit into from
Jul 19, 2017

Conversation

hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Jul 10, 2017

credentials.Certificate() and credentials.RefreshToken() only accept file path arguments. This makes loading credentials in some environments (e.g. App Engine) challenging. To support loading credentials, when the configuration data is available as non-file resources, this patch modified the above constructors to accept either a file path or a parsed dict containing JSON data.

@hiranya911 hiranya911 assigned hiranya911 and unassigned bjornick Jul 19, 2017
@hiranya911 hiranya911 merged commit c6c3c8f into master Jul 19, 2017
@hiranya911 hiranya911 deleted the hkj-credential-api branch July 19, 2017 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants