Skip to content

LG-5873: Allow users to sign back into the SP with original browser after error#9692

Merged
mdiarra3 merged 5 commits intomainfrom
LG-5873-sign-in-sp-bug
Dec 7, 2023
Merged

LG-5873: Allow users to sign back into the SP with original browser after error#9692
mdiarra3 merged 5 commits intomainfrom
LG-5873-sign-in-sp-bug

Conversation

@mdiarra3
Copy link
Contributor

@mdiarra3 mdiarra3 commented Dec 1, 2023

🎫 Ticket

LG-5873: sign in sp bug

🛠 Summary of changes

This puts back the SP sesson when we log out to maintain that as the user gets redirected to the sign in page again to reduce confusion


if warden.authenticated?(scope) && options[:store] != false
if record.unique_session_id != current_session_id
service_provider = warden.raw_session.dig('sp')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will maintain the SP for the user when theyre redirected back to the Error page.

Copy link
Contributor

@kevinsmaster5 kevinsmaster5 left a comment

Choose a reason for hiding this comment

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

It looks good and works as tested locally.

@mdiarra3 mdiarra3 marked this pull request as ready for review December 5, 2023 18:35
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Tested and works as expected, LGTM 👍

@mdiarra3 mdiarra3 merged commit 73ac146 into main Dec 7, 2023
@mdiarra3 mdiarra3 deleted the LG-5873-sign-in-sp-bug branch December 7, 2023 14:51
@jmhooper jmhooper mentioned this pull request Dec 12, 2023
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.

3 participants