oniyi-http-plugin-credentials
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -102,3 +102,5 @@ 'use strict'; | ||
user[options.userRelationProp]({ | ||
provider: options.providerName, | ||
where: { | ||
provider: options.providerName, | ||
}, | ||
}, (credentialsErr, results) => { | ||
@@ -148,2 +150,4 @@ if (credentialsErr) { | ||
logger.debug('updated user identity', updatedIdentity); | ||
// pass newCredentials to makeAuthParams and merge return value with the modified request parameters | ||
@@ -160,3 +164,5 @@ // explicitly using "merge" here to allow partial updates of nested object literals | ||
}); | ||
return null; | ||
}); | ||
return null; | ||
}); | ||
@@ -179,4 +185,7 @@ } | ||
}); | ||
return null; | ||
}); | ||
return null; | ||
}); | ||
return null; | ||
}, | ||
@@ -183,0 +192,0 @@ }; |
{ | ||
"name": "oniyi-http-plugin-credentials", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A plugin for oniyi-http-client for automatic attachment of user credentials", | ||
@@ -26,16 +26,16 @@ "homepage": "", | ||
"dependencies": { | ||
"lodash": "4.5.1", | ||
"oniyi-logger": "0.3.1", | ||
"passport": "0.3.2" | ||
"lodash": "^4.10.0", | ||
"oniyi-logger": "^0.4.2", | ||
"passport": "^0.3.2" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^1.10.3", | ||
"eslint-config-oniyi": "^1.1.2", | ||
"eslint": "^2.7.0", | ||
"eslint-config-oniyi": "^2.0.2", | ||
"gulp": "^3.9.1", | ||
"gulp-eslint": "^1.0.0", | ||
"gulp-eslint": "^2.0.0", | ||
"gulp-exclude-gitignore": "^1.0.0", | ||
"gulp-istanbul": "^0.10.3", | ||
"gulp-istanbul": "^0.10.4", | ||
"gulp-mocha": "^2.2.0", | ||
"gulp-plumber": "^1.1.0", | ||
"gulp-nsp": "^2.3.0", | ||
"gulp-nsp": "^2.4.0", | ||
"gulp-coveralls": "^0.1.4" | ||
@@ -42,0 +42,0 @@ }, |
# oniyi-http-plugin-credentials [![NPM version][npm-image]][npm-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url] | ||
> A plugin for oniyi-http-client for automatic attachment of user credentials | ||
This plugin is designed to work with the [third-party login component](https://docs.strongloop.com/pages/releaseview.action?pageId=3836277) [loopback](https://docs.strongloop.com/display/public/LB/LoopBack) framework. | ||
This plugin is designed to work with the [third-party login component](https://docs.strongloop.com/pages/releaseview.action?pageId=3836277) of [loopback](https://docs.strongloop.com/display/public/LB/LoopBack). | ||
The [third-party login component](https://docs.strongloop.com/pages/releaseview.action?pageId=3836277) is heavily based on [passportjs](http://passportjs.org/). | ||
@@ -6,0 +6,0 @@ To make things work more broadly, I also wrote a [loopback](https://docs.strongloop.com/display/public/LB/LoopBack) extension to allow the usage of custom auth schemes [oniyi-loopback-passport-custom-schemes](https://github.com/benkroeger/oniyi-loopback-passport-custom-schemes). |
14423
192
+ Addedlodash@4.17.21(transitive)
+ Addedoniyi-logger@0.4.2(transitive)
- Removedlodash@4.5.1(transitive)
- Removedoniyi-logger@0.3.1(transitive)
Updatedlodash@^4.10.0
Updatedoniyi-logger@^0.4.2
Updatedpassport@^0.3.2