passport-oauthkermit
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -64,2 +64,8 @@ /** | ||
console.log('passport-oauthkermit/lib/passport-oauth/strategies/oauth2.js/function OAuth2Strategy'); | ||
console.log('options.tokenURL='+options.tokenURL); | ||
console.log('options.tokenURL='+options.tokenURL); | ||
console.log('options.clientID='+options.clientID); | ||
console.log('options.clientSecret='+options.clientSecret); | ||
if (!options.authorizationURL) throw new Error('OAuth2Strategy requires a authorizationURL option'); | ||
@@ -100,3 +106,5 @@ if (!options.tokenURL) throw new Error('OAuthStrategy requires a tokenURL option'); | ||
if (req.query && req.query.error) { | ||
// TODO: Error information pertaining to OAuth 2.0 flows is encoded in the | ||
console.log('passport-oauthkermit/lib/passport-oauth/strategies/oauth2.js/OAuth2Strategy.prototype.authenticate'); | ||
console.log('req.query error='+req.query.error); | ||
// TODO: Error information pertaining to OAuth 2.0 flows is encoded in the | ||
// query parameters, and should be propagated to the application. | ||
@@ -115,3 +123,6 @@ return this.fail(); | ||
} | ||
console.log('passport-oauthkermit/lib/passport-oauth/strategies/oauth2.js/OAuth2Strategy.prototype.authenticate'); | ||
console.log('callbackURL='+callbackURL); | ||
if (req.query && req.query.code) { | ||
@@ -128,4 +139,11 @@ var code = req.query.code; | ||
function(err, accessToken, refreshToken, params) { | ||
if (err) { return self.error(new InternalOAuthError('failed to obtain access token', err)); } | ||
if (err) { | ||
console.log('passport-oauthkermit/lib/passport-oauth/strategies/oauth2.js/OAuth2Strategy.prototype.authenticate'); | ||
console.log('err='+err); | ||
return self.error(new InternalOAuthError('failed to obtain access token', err)); } | ||
console.log('passport-oauthkermit/lib/passport-oauth/strategies/oauth2.js/OAuth2Strategy.prototype.authenticate'); | ||
console.log('pas d erreur, passons a la recuperation du profile'); | ||
self._loadUserProfile(accessToken, function(err, profile) { | ||
@@ -132,0 +150,0 @@ if (err) { return self.error(err); }; |
{ | ||
"name": "passport-oauthkermit", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "passport-oauth for kermit", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"oauthkermit": "0.0.1", | ||
"oauthkermit": "0.0.2", | ||
"passport": "^0.2.1", | ||
@@ -23,0 +23,0 @@ "pkginfo": "^0.3.0" |
Sorry, the diff of this file is not supported yet
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
50320
606
+ Addedoauthkermit@0.0.2(transitive)
- Removedoauthkermit@0.0.1(transitive)
Updatedoauthkermit@0.0.2