Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

passport-oauthkermit

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-oauthkermit - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

26

lib/passport-oauth/strategies/oauth2.js

@@ -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); };

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc