Socket
Socket
Sign inDemoInstall

express-gateway-plugin-oauth

Package Overview
Dependencies
59
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.0 to 4.2.1

0

manifest.js

@@ -0,0 +0,0 @@ module.exports = {

2

package.json
{
"name": "express-gateway-plugin-oauth",
"version": "4.2.0",
"version": "4.2.1",
"description": "Plugin para solicitar autorização do serviço de autenticação remoto.",

@@ -5,0 +5,0 @@ "main": "manifest.js",

@@ -28,3 +28,3 @@ require('dotenv');

let host = req.subdomains[req.subdomains.length - 1];
let host = getSubdomain(req.headers.host);

@@ -94,2 +94,13 @@ debug('host : %s', host);

}
};
// TODO - exportar no NPM do odin-node
const getSubdomain = (host) => {
var parts = host.split(".");
if (parts[0] === 'www') {
return parts[1];
} else {
return parts[0];
}
};

@@ -0,0 +0,0 @@ #### express-gateway-plugin-oauth:

@@ -0,0 +0,0 @@ const validateAuthorizationRole = (authorizedRoles, userDetails) => {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc