express-gateway-plugin-oauth
Advanced tools
Comparing version 4.1.3 to 4.1.4
{ | ||
"name": "express-gateway-plugin-oauth", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"description": "Plugin para solicitar autorização do serviço de autenticação remoto.", | ||
@@ -5,0 +5,0 @@ "main": "manifest.js", |
const validateAuthorizationRole = (authorizedRoles, userDetails) => { | ||
return new Promise((resolve) => { | ||
return new Promise((resolve, reject) => { | ||
@@ -10,3 +10,7 @@ if (!authorizedRoles) { | ||
userDetails.authorities.includes({authoritie: authorizedRoles}); | ||
if (userDetails.authorities.filter(e => authorizedRoles.includes(e.authority)).size > 0) { | ||
return resolve(); | ||
} else { | ||
return reject(); | ||
} | ||
@@ -13,0 +17,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
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
7155
76