-
-
Notifications
You must be signed in to change notification settings - Fork 464
[IMP] auth_saml nicer handling of logout and autoredirect #503
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
Conversation
9c3c078
to
11a4a3c
Compare
|
||
class Session(WebSession): | ||
@http.route("/web/session/logout", type="http", auth="none") | ||
def logout(self, redirect="/web/login"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if I should not just say
def logout(self, redirect="/web/login"): | |
def logout(self, redirect="/web/login?disable_autoredirect="): |
and simply return super().logout(redirect)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello @gurneyalex , reading the doc https://github.com/OCA/server-auth/blob/15.0/auth_saml/README.rst#configuration I think we could try to test it and have an answer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried this variant, seems we have the same expected result
When autoredirect is enabled, but some technical accounts have a normal password authentication setup, it can be difficult to access them as logging out of a session will trigger the autoredirect feature. We change this by overriding the logout redirection so that it sets the disable_autoredirect parameter -> this way the user will get redirected to the normal signin screen.
11a4a3c
to
0f552d5
Compare
/ocabot merge minor |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 7b6211f. Thanks a lot for contributing to OCA. ❤️ |
Syncing from upstream OCA/server-auth (17.0)
When autoredirect is enabled, but some technical accounts have a normal
password authentication setup, it can be difficult to access them as
logging out of a session will trigger the autoredirect feature.
We change this by overriding the logout redirection so that it sets the
disable_autoredirect parameter -> this way the user will get redirected
to the normal signin screen.