Comparing version 0.2.1 to 0.2.2
@@ -15,3 +15,2 @@ 'use strict'; | ||
options.odicConfig = options.oidcServer + '/.well-known/openid-configuration'; | ||
options.bearer = new Buffer(`${options.clientId}:${options.clientSecret}`).toString('base64'); | ||
@@ -18,0 +17,0 @@ let handlerFactory = new HandlerFactory(); |
@@ -12,3 +12,3 @@ 'use strict'; | ||
self.handlerFor = (data, result, done) => { | ||
async.eachSeries(handlers, (handler, next) => { | ||
async.each(handlers, (handler, next) => { | ||
if(handler.handles(data)) { | ||
@@ -15,0 +15,0 @@ debug('Using handler: ' + handler.name); |
@@ -18,5 +18,6 @@ 'use strict'; | ||
let bearer = new Buffer(`${options.clientId}:${options.clientSecret}`).toString('base64'); | ||
let postOptions = { | ||
headers: { | ||
Authorization: 'Basic ' + options.bearer | ||
Authorization: 'Basic ' + bearer | ||
}, | ||
@@ -23,0 +24,0 @@ data: params |
{ | ||
"name": "oidc", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Middleware for a bunch of common web servers to handle OIDC authentication.", | ||
@@ -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
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
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
131246
2
0