@mashroom/mashroom-security-provider-ldap
Advanced tools
Comparing version 1.9.1 to 1.9.2
@@ -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 { |
@@ -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", |
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
29152
570