oniyi-http-plugin-credentials
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -5,3 +5,3 @@ 'use strict'; | ||
const passport = require('passport'); | ||
const logger = require('oniyi-logger')('http-client:plugins:attach-credentials'); | ||
const logger = require('oniyi-logger')('oniyi:http-client:plugin:attach-credentials'); | ||
@@ -15,2 +15,3 @@ | ||
const params = { grant_type: 'refresh_token' }; | ||
// eslint-disable-next-line no-underscore-dangle | ||
strategy._oauth2.getOAuthAccessToken(currentCredentials.refreshToken, params, | ||
@@ -86,2 +87,3 @@ (err, accessToken, refreshToken, respParams) => { | ||
// load the passport-strategy instance from passport | ||
// eslint-disable-next-line no-underscore-dangle | ||
const strategy = passport._strategy(options.providerName); | ||
@@ -88,0 +90,0 @@ if (!strategy) { |
{ | ||
"name": "oniyi-http-plugin-credentials", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "A plugin for oniyi-http-client for automatic attachment of user credentials", | ||
@@ -27,9 +27,10 @@ "homepage": "", | ||
"lodash": "^4.10.0", | ||
"oniyi-logger": "^0.4.2", | ||
"oniyi-logger": "^1.0.0", | ||
"passport": "^0.3.2" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^2.7.0", | ||
"eslint-config-oniyi": "^2.0.2", | ||
"eslint": "^3.5.0", | ||
"eslint-config-oniyi": "^4.2.0", | ||
"gulp": "^3.9.1", | ||
"gulp-coveralls": "^0.1.4", | ||
"gulp-eslint": "^2.0.0", | ||
@@ -39,5 +40,5 @@ "gulp-exclude-gitignore": "^1.0.0", | ||
"gulp-mocha": "^2.2.0", | ||
"gulp-nsp": "^2.4.0", | ||
"gulp-plumber": "^1.1.0", | ||
"gulp-nsp": "^2.4.0", | ||
"gulp-coveralls": "^0.1.4" | ||
"lodash": "^4.15.0" | ||
}, | ||
@@ -44,0 +45,0 @@ "repository": "benkroeger/oniyi-http-plugin-credentials", |
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
14555
194
11
+ Addedoniyi-logger@1.0.0(transitive)
- Removedoniyi-logger@0.4.2(transitive)
Updatedoniyi-logger@^1.0.0