-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback URL query for "SSO.FORCE_USER_TO_LOGINPAGE" #1542
Comments
Hi @kbilev UPDATE systemsettings SET `value` = 0 WHERE `key` = "FRONTEND.SSO.FORCE_USER_TO_LOGINPAGE"; Hope this helps |
Hello @nook24, |
This code is an attempt, to temporarily disable the SSO force redirection for debugging and testing purpose. The basic idea is, to simply add the parameter disable_redirect=1 to the query string, to disable the redirect. E.g.: /users/login?disable_redirect=1 The issue with this approach is, that the HTML template gets loaded without any input fields for the login. The template URL is hardcoded and can not take any parameters (at least to my knowledge) Therefore this code currently disabled the redirect, but the user has no login fields. Not that helpful :(
While I was going to implement the query string parameter, I noticed some issue. The login template itself does not contain any form information, when the SSO redirect is enabled. My attempt is currently disabling the redirect, but the user has no login fields. Not that helpful :( I have pushed my code into the branch |
I have created a pull request to your branch with a working solution based on your work. |
Is your feature request related to a problem? Please describe.
No direct problem, but what happens if "SSO.FORCE_USER_TO_LOGINPAGE" is enabled and for a reason the SSO Service is not available?
If "SSO.FORCE_USER_TO_LOGINPAGE" is enabled, the login form is disabled, so no possibility to login via the local user
Describe the solution you'd like
Maybe it would be a good idea to add a system setting like "SSO.FALLBACK_QUERY" and add a check in the UsersController to disable the redirection if the query is included in the login URL (/login?disable_redirect=true")
Describe alternatives you've considered
Disable Javascript in the browser to disable the redirect, but also the login form uses javascript. This seems a bad workaround
Best Regards,
Kevin
The text was updated successfully, but these errors were encountered: