Skip to content

Conversation

@MarcialRosales
Copy link
Contributor

@MarcialRosales MarcialRosales commented Mar 10, 2025

Proposed Changes

This is an improvement to the /login endpoint (rabbit_mgmt_login) used for idp-initiated logons in the management ui.

The previous implementation produced a warning message in the browser the first time the form was submitted. The warning message warned the user that the form was about to be submitted again. This was because the response page to the POST request contained a javascript code that refreshed the page.

With this new change, the rabbit_mgmt_login module instead replies with a redirect 302 including a cookie with the token. This cookie is very short-lived, when the user is redirected to the Overview page of the management, the cookie is already gone.

Types of Changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes issue #NNNN)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause an observable behavior change in existing systems)
  • Documentation improvements (corrections, new content, etc)
  • Cosmetic change (whitespace, formatting, etc)
  • Build system and/or CI

@MarcialRosales MarcialRosales force-pushed the mgt-oauth-login-without-redirect branch from 11dcbcd to 69b5486 Compare March 12, 2025 15:48
@MarcialRosales MarcialRosales marked this pull request as ready for review March 12, 2025 16:02
@michaelklishin michaelklishin merged commit ea5345e into main Mar 12, 2025
274 checks passed
@michaelklishin michaelklishin deleted the mgt-oauth-login-without-redirect branch March 12, 2025 19:16
michaelklishin added a commit that referenced this pull request Mar 12, 2025
Improve oauth2 idp-initiated login (backport #13476)
michaelklishin added a commit that referenced this pull request Mar 12, 2025
michaelklishin added a commit that referenced this pull request Mar 13, 2025
Improve oauth2 idp-initiated login (backport #13476) (backport #13502)
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.

3 participants