@mashroom/mashroom-security-provider-ldap
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -52,8 +52,7 @@ "use strict"; | ||
async authenticate(request, response, authenticationHints = {}) { | ||
let buff = Buffer.from(decodeURI(request.originalUrl)); | ||
const base64encodedReferrer = buff.toString('base64'); | ||
const encodedRedirectUrl = encodeURIComponent(request.originalUrl); | ||
const authenticationHintsQuery = _querystring.default.stringify(authenticationHints); | ||
response.redirect(`${this._loginPage}?ref=${base64encodedReferrer}${authenticationHintsQuery ? '&' + authenticationHintsQuery : ''}`); | ||
response.redirect(`${this._loginPage}?redirectUrl=${encodedRedirectUrl}${authenticationHintsQuery ? '&' + authenticationHintsQuery : ''}`); | ||
return { | ||
@@ -60,0 +59,0 @@ status: 'deferred' |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"files": [ | ||
@@ -17,5 +17,5 @@ "dist/**" | ||
"@babel/cli": "^7.8.4", | ||
"@mashroom/mashroom": "1.4.3", | ||
"@mashroom/mashroom-security": "1.4.3", | ||
"@mashroom/mashroom-utils": "1.4.3", | ||
"@mashroom/mashroom": "1.4.4", | ||
"@mashroom/mashroom-security": "1.4.4", | ||
"@mashroom/mashroom-utils": "1.4.4", | ||
"eslint": "^6.8.0", | ||
@@ -22,0 +22,0 @@ "express": "^4.17.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
18029
338