Skip to content
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

Fixes #21809: Dont redirect other tabs to login form when session cookie is replaced - add a notification #4502

Conversation

amousset
Copy link
Member

@amousset
Copy link
Member Author

PR updated with a new commit

@@ -360,7 +360,7 @@ class Boot extends Loggable {
// Do nothing instead, as at allows to keep open tabs context until we get the new cookie
// This does not affect security as it is only a redirection anyway and did not change
// the session itself.
LiftRules.noCometSessionCmd.default.set(() => JsCmd.unitToJsCmd(()))
LiftRules.noCometSessionCmd.default.set(() => JsRaw(s"createErrorNotification('You have been signed out. Please reload the page to sign in again.')").cmd)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might check in the future if we want to do the same thing for noAjaxSessionCmd

@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder/pull/4502
-- Your faithful QA
Kant merge: "In law a man is guilty when he violates the rights of others. In ethics he is guilty if he only thinks of doing so."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/60333/console)

@amousset
Copy link
Member Author

OK, squash merging this PR

@amousset amousset force-pushed the bug_21809/dont_redirect_other_tabs_to_login_form_when_session_cookie_is_replaced_add_a_notification branch from 354b8c4 to c404eba Compare September 27, 2022 14:55
@amousset amousset merged commit c404eba into Normation:master Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants