LemonLDAPNG / node-lemonldap-ng-handler

Lemonldap::NG handler for Node.js
GNU General Public License v3.0
8 stars 2 forks source link

Wrong redirection to portal on forbidden error #2

Closed soisik closed 5 years ago

soisik commented 5 years ago

Hi,

When a user gets rejected, he is redirected to a faulty URL: https://<myApp>/function()%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20conf.portal;[...]/lmerror/403?url=Lw==.

If he was redirected to https://<portal>/?lmError=403&url=Lw==, user would get a proper 401 error page.

PR follows.