Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oidc

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oidc - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

LICENSE

1

lib/auth.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc