google-oauth-jwt
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -69,3 +69,4 @@ var auth = require('./auth'); | ||
}); | ||
self.pendingCallbacks = []; | ||
} | ||
}; | ||
} |
{ | ||
"name": "google-oauth-jwt", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": { | ||
@@ -13,2 +13,3 @@ "name": "Nicolas Mercier", | ||
"oauth", | ||
"oauth2", | ||
"service account", | ||
@@ -15,0 +16,0 @@ "jwt", |
@@ -19,3 +19,3 @@ # google-oauth-jwt | ||
which is optional. Integration with [request](https://github.com/mikeal/request) provides automatic requesting of | ||
tokens, as well as token caching. | ||
tokens, as well as built-in token caching. | ||
@@ -51,3 +51,3 @@ ## Documentation | ||
has security settings must be configured individually. Access is granted by assigning permissions to the service | ||
account, using its email address. | ||
account, using its email address found in the API console. | ||
@@ -78,5 +78,3 @@ For example, in order to list files in Google Drive, folders and files must be shared with the service account email | ||
}, function (err, res, body) { | ||
console.log(JSON.parse(body)); | ||
}); | ||
@@ -101,8 +99,6 @@ ``` | ||
keyFile: 'my-service-account-key.pem', | ||
// specify the scopes you which to access | ||
// specify the scopes you wish to access | ||
scopes: ['https://www.googleapis.com/auth/drive.readonly'] | ||
}, function (err, token) { | ||
console.log(token); | ||
}); | ||
@@ -123,8 +119,6 @@ ``` | ||
keyFile: 'my-service-account-key.pem', | ||
// specify the scopes you which to access | ||
// specify the scopes you wish to access | ||
scopes: ['https://www.googleapis.com/auth/drive.readonly'] | ||
}, function (err, token) { | ||
console.log(token); | ||
}); | ||
@@ -151,5 +145,3 @@ ``` | ||
}, function (err, jwt) { | ||
console.log(jwt); | ||
}); | ||
@@ -179,3 +171,3 @@ ``` | ||
// the path to the PEM file to use for the cryptographic key (ignored is 'key' is also defined) | ||
// the path to the PEM file to use for the cryptographic key (ignored if 'key' is also defined) | ||
// the key will be used to sign the JWT and validated by Google OAuth | ||
@@ -189,5 +181,5 @@ keyFile: 'path_to/key.pem', | ||
// if access is being granted on behalf of someone else, specifies who is impersonating the service account | ||
delegationEmail: 'email_address', | ||
delegationEmail: 'email_address@mycompany.com', | ||
// turns on console logging for debugging | ||
// turns on simple console logging for debugging | ||
debug: false | ||
@@ -198,5 +190,4 @@ | ||
Options are used for the `authenticate` method, as well as the `jwt` settings passed to | ||
[request](https://github.com/mikeal/request). Internally, they are used to encode the JWT that will be sent to | ||
Google in order to issue a token that can then be used for the APIs. | ||
Options are used to encode the JWT that will be sent to Google OAuth servers in order to issue a token that can then be | ||
used for the APIs. | ||
@@ -208,2 +199,3 @@ For more information: | ||
* 0.0.4: fixed pending callbacks accumulating indefinitely in TokenCache | ||
* 0.0.3: introduction of TokenCache | ||
@@ -220,3 +212,3 @@ * 0.0.2: improved error handling and documentation | ||
+ request | ||
+ [request](https://github.com/mikeal/request) | ||
@@ -223,0 +215,0 @@ ## License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16791
187
227