Skip to content

Conversation

@the-mikedavis
Copy link
Collaborator

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 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`.
@michaelklishin michaelklishin merged commit 3c4fc99 into main May 29, 2025
1108 of 1112 checks passed
@michaelklishin michaelklishin deleted the md/clear-auth-session-on-expiry branch May 29, 2025 05:57
michaelklishin added a commit that referenced this pull request May 29, 2025
Clear management auth storage when redirecting to login (backport #13972)
@michaelklishin
Copy link
Collaborator

Thank you, @the-mikedavis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants