Skip to content
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

update instance email & key properties from gToken #23

Merged
merged 1 commit into from
Apr 3, 2015

Conversation

stephenplusplus
Copy link
Contributor

When given a path to a keyfile, gtoken will update its own instance with the extracted email & key data after parsing it from the file. These values are useful to expose to users, as an example, for when trying to create a signed URL for Storage access.

Ping @ryanseys to see if this is a reliable way to get these values.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 91.95% when pulling 1f089423316d195eb812f7a2e4c37df3499d9606 on stephenplusplus:master into 97cefdd on google:master.

@@ -101,6 +101,8 @@ JWT.prototype.authorize = function(opt_callback) {
if (!err) {
that.credentials = result;
that.credentials.refresh_token = 'jwt-placeholder';
that.key = that.gtoken.key;

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 91.95% when pulling 3bc5296 on stephenplusplus:master into 3315596 on google:master.

tbetbetbe added a commit that referenced this pull request Apr 3, 2015
update instance email & key properties from gToken
@tbetbetbe tbetbetbe merged commit e64f998 into googleapis:master Apr 3, 2015
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.

4 participants