Skip to content

LG 14404 Add email at confirmation to share with service provider#11415

Closed
kevinsmaster5 wants to merge 2 commits intomainfrom
kmas-lg-14404-add-email-workflow-confirm
Closed

LG 14404 Add email at confirmation to share with service provider#11415
kevinsmaster5 wants to merge 2 commits intomainfrom
kmas-lg-14404-add-email-workflow-confirm

Conversation

@kevinsmaster5
Copy link
Copy Markdown
Contributor

@kevinsmaster5 kevinsmaster5 commented Oct 29, 2024

🎫 Ticket

Link to the relevant ticket:
LG-14404

🛠 Summary of changes

Remedies the user flow from adding a new email address at Service Provider linking confirmation.

Expected behavior:
Clicking the link that appears in the added email address confirmation email message should return you to where you left off from selecting an email to pass over to the SP

Actual behavior:
You end up at the account dashboard and have to click the Return to SP link to get back on track.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Using a simulated SP such as SAML or OIDC log in with an account that hasn't been connected yet.
  • Proceed to the flow and choose to add a new email
  • Observe that by clicking the confirmation link you are returned to where you can select that email and proceed on to the service provider.

👀 Screenshots

email-change-redirect.mov

@kevinsmaster5 kevinsmaster5 marked this pull request as ready for review October 29, 2024 19:31
@kevinsmaster5 kevinsmaster5 requested a review from a team October 29, 2024 20:20
Comment on lines +25 to +28
if pending_completions_consent?
user_session[:pending_completions_consent] = true
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you explain what this code is for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It sets a session value that will help determine the redirect in the email confirmations controller

if user_session[:pending_completions_consent] == true
redirect_to sign_up_select_email_url
else
redirect_to account_url
end

it will be deleted in the completions controller when they get redirected finally to the SP

user_session.delete(:pending_completions_consent)

@aduth
Copy link
Copy Markdown
Contributor

aduth commented Nov 19, 2024

@kevinsmaster5 Do we still need this pull request, or did #11439 replace it?

@kevinsmaster5
Copy link
Copy Markdown
Contributor Author

@kevinsmaster5 Do we still need this pull request, or did #11439 replace it?

We do not. I'll close it now.

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.

2 participants