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 1.9.1 to 1.9.2

7

dist/MashroomLdapSecurityProvider.js

@@ -189,4 +189,9 @@ "use strict";

request.session[LDAP_AUTH_USER_SESSION_KEY] = mashroomUser;
request.session[LDAP_AUTH_EXPIRES_SESSION_KEY] = Date.now() + this._authenticationTimeoutSec * 1000; // Make sure the user is in the session when this method returns (file session store is async)
request.session[LDAP_AUTH_EXPIRES_SESSION_KEY] = Date.now() + this._authenticationTimeoutSec * 1000;
if (request.session.cookie.maxAge && this._authenticationTimeoutSec * 1000 >= request.session.cookie.maxAge) {
logger.error(`Configuration error detected: The authenticationTimeoutSec (${this._authenticationTimeoutSec}s) value is higher than the session cookie maxAge (${Math.trunc(request.session.cookie.maxAge / 1000)}s). Since the authentication is stored in the session this might lead to unexpected behaviour.`);
} // Make sure the user is in the session when this method returns (file session store is async)
await new Promise(resolve => request.session.save(() => resolve()));

@@ -193,0 +198,0 @@ return {

8

package.json

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

"license": "MIT",
"version": "1.9.1",
"version": "1.9.2",
"files": [

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

"@babel/cli": "^7.15.7",
"@mashroom/mashroom": "1.9.1",
"@mashroom/mashroom-security": "1.9.1",
"@mashroom/mashroom-utils": "1.9.1",
"@mashroom/mashroom": "1.9.2",
"@mashroom/mashroom-security": "1.9.2",
"@mashroom/mashroom-utils": "1.9.2",
"@types/express": "^4.17.13",

@@ -22,0 +22,0 @@ "@types/jest": "^27.0.1",

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