Comparing version 0.2.3 to 0.3.0
@@ -58,2 +58,3 @@ 'use strict'; | ||
self.handle = (req, middleware, handlerOptions) => { | ||
/* jshint maxcomplexity: 5 */ | ||
handlerOptions = handlerOptions || {}; | ||
@@ -63,2 +64,8 @@ let result = { | ||
}; | ||
if(middleware.session) { | ||
let session = middleware.session(); | ||
if(session) { | ||
return middleware.success(middleware.session()); | ||
} | ||
} | ||
handlerFactory.handlerFor(req.query, result, (err) => { | ||
@@ -65,0 +72,0 @@ if(err) { middleware.fail(err); } |
'use strict'; | ||
module.exports = { | ||
Restify: require('./restify') | ||
Restify: require('./restify'), | ||
Express: require('./express') | ||
}; |
{ | ||
"name": "oidc", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "Middleware for a bunch of common web servers to handle OIDC authentication.", | ||
@@ -29,4 +29,4 @@ "keywords": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
"type": "AGPL", | ||
"url": "https://www.gnu.org/licenses/agpl.txt" | ||
} | ||
@@ -33,0 +33,0 @@ ], |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
163518
21
431
2
70
2
0