Skip to content

Conversation

@AltamashShaikh
Copy link
Contributor

@AltamashShaikh AltamashShaikh commented Sep 26, 2025

Description:

Code to add "Reauth via SSO" in password confirmation box
Fixes: #PG-4537
Requires: https://github.com/innocraft/plugin-LoginSaml/pull/193

Logic:

  1. Check if "Reauth via SSO"" is needed and set isReAuthEnabled=1
  2. In Password confirmation, if isReAuthEnabled=1, add Reauth via SSO button
  3. On button click, call a controller endpoint with a tempToken to get the reAuth URL
  4. Open the reAuth URL in new window
  5. Start polling for reAuthStatus with tempToken
  6. On success, close the modal and call submit action and set tempToken as password
  7. Pass the confirmPassword to check if Login.userRequiresPasswordConfirmation
  8. SSO plugin checks if confirmPassword (TempToken) set in session.

Review

@github-actions
Copy link
Contributor

If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Oct 11, 2025
@AltamashShaikh
Copy link
Contributor Author

Closing in favour of #23703

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

Labels

Stale The label used by the Close Stale Issues action

Development

Successfully merging this pull request may close these issues.

3 participants