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.3 to 0.3.0

lib/middleware/express.js

7

lib/auth.js

@@ -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); }

3

lib/middleware/index.js
'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 @@ ],

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