Skip to content

Commit

Permalink
send raw scopes message to gtoken
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Mar 25, 2015
1 parent 845f63d commit ad6e6bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/auth/jwtclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ JWT.prototype._createGToken = function(callback) {
this.gtoken = this.gToken({
iss: this.email,
sub: this.subject,
scope: this.scopes instanceof Array ? this.scopes.join(' ') : this.scopes,
scope: this.scopes,
keyFile: this.keyFile,
key: this.key
});
Expand Down
2 changes: 1 addition & 1 deletion test/test.jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('JWT auth client', function() {
jwt.gToken = function(opts) {
assert.equal('foo@serviceaccount.com', opts.iss);
assert.equal('/path/to/key.pem', opts.keyFile);
assert.equal('http://bar http://foo', opts.scope);
assert.deepEqual(['http://bar', 'http://foo'], opts.scope);
assert.equal('bar@subjectaccount.com', opts.sub);
return {
getToken: function(opt_callback) {
Expand Down

0 comments on commit ad6e6bf

Please sign in to comment.