Skip to content

Clear management auth storage when redirecting to login (backport #13972) #13975

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 29, 2025

This branch redirects the client to the login page when the cookie expires. To complete the logout process we should also clear any auth data stored in local storage: local storage has no built-in expiration mechanism.

To test this locally you can use make run-broker, set the session timeout to one minute for quick testing:

application:set_env(rabbitmq_management, login_session_timeout, 1)

go to the management page (http://localhost:15672/#/), login with default credentials and wait a minute. After this change the local storage only contains info like rabbitmq.vhost and rabbitmq.version.


This is an automatic backport of pull request #13972 done by Mergify.

This branch redirects the client to the login page when the cookie
expires. To complete the logout process we should also clear any auth
data stored in local storage: local storage has no built-in expiration
mechanism.

To test this locally you can use `make run-broker`, set the session
timeout to one minute for quick testing:

    application:set_env(rabbitmq_management, login_session_timeout, 1)

go to the management page (`http://localhost:15672/#/`), login with
default credentials and wait a minute. After this change the local
storage only contains info like `rabbitmq.vhost` and `rabbitmq.version`.

(cherry picked from commit 2a1b65d)
@michaelklishin michaelklishin added this to the 4.1.1 milestone May 29, 2025
@michaelklishin michaelklishin merged commit 906e554 into v4.1.x May 29, 2025
265 of 270 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.1.x/pr-13972 branch May 29, 2025 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants