Socket
Socket
Sign inDemoInstall

@mashroom/mashroom-security-provider-ldap

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mashroom/mashroom-security-provider-ldap - npm Package Compare versions

Comparing version 2.0.0-alpha.3 to 2.0.0-alpha.4

16

dist/MashroomLdapSecurityProvider.js

@@ -264,8 +264,12 @@ "use strict";

if (userToRoles && userToRoles.hasOwnProperty(username)) {
userToRoles[username].forEach(role => {
if (roles.indexOf(role) === -1) {
roles.push(role);
}
});
if (userToRoles) {
const roleProp = Object.keys(userToRoles).find(u => u.toLowerCase() === username.toLowerCase());
if (roleProp) {
userToRoles[roleProp].forEach(role => {
if (roles.indexOf(role) === -1) {
roles.push(role);
}
});
}
}

@@ -272,0 +276,0 @@

@@ -7,3 +7,3 @@ {

"license": "MIT",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.4",
"files": [

@@ -16,5 +16,5 @@ "dist/**"

"devDependencies": {
"@mashroom/mashroom": "2.0.0-alpha.3",
"@mashroom/mashroom-security": "2.0.0-alpha.3",
"@mashroom/mashroom-utils": "2.0.0-alpha.3",
"@mashroom/mashroom": "2.0.0-alpha.4",
"@mashroom/mashroom-security": "2.0.0-alpha.4",
"@mashroom/mashroom-utils": "2.0.0-alpha.4",
"@types/express": "^4.17.13",

@@ -21,0 +21,0 @@ "@types/ldapjs": "^2.2.2",

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