loopback-component-oauth2
Advanced tools
Comparing version 2.0.0-beta3 to 2.0.0-beta4
@@ -0,4 +1,12 @@ | ||
2015-01-30, Version 2.0.0-beta4 | ||
=============================== | ||
* Make sure bodyParser doesn't interfere with proxy (Raymond Feng) | ||
2015-01-08, Version 2.0.0-beta3 | ||
=============================== | ||
* v2.0.0-beta3 (Raymond Feng) | ||
* Fix the oAuth2 auth middleware for an array of handlers (Raymond Feng) | ||
@@ -5,0 +13,0 @@ |
@@ -707,4 +707,11 @@ /** | ||
// The urlencoded middleware is required for oAuth 2.0 protocol endpoints | ||
app.middleware('parse', app.loopback.urlencoded({extended: false})); | ||
app.middleware('parse', app.loopback.json({strict: false})); | ||
var oauth2Paths = [ | ||
options.authorizePath || '/oauth/authorize', | ||
options.tokenPath || '/oauth/token', | ||
options.decisionPath || '/oauth/authorize/decision', | ||
options.loginPath || '/login' | ||
]; | ||
app.middleware('parse', oauth2Paths, | ||
app.loopback.urlencoded({extended: false})); | ||
app.middleware('parse', oauth2Paths, app.loopback.json({strict: false})); | ||
@@ -711,0 +718,0 @@ // Set up the oAuth 2.0 protocol endpoints |
{ | ||
"name": "loopback-component-oauth2", | ||
"version": "2.0.0-beta3", | ||
"version": "2.0.0-beta4", | ||
"description": "OAuth 2.0 provider for LoopBack", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
437405
3400