Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GET /signout/all endpoint #2472

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Add GET /signout/all endpoint #2472

merged 1 commit into from
Nov 8, 2023

Conversation

coldlink
Copy link
Member

@coldlink coldlink commented Nov 6, 2023

In #2462 we updated sign out so that we only sign out on the current device/browser, instead of AL browsers/devices/apps when the user clicks "Sign Out" on the web, or navigates to the sign out link directly.

This provides better user experience where if they are logged into multiple devices or apps they will no longer get logged out of those devices when they sign out on the web on another device.

However a case by user help was made that they used the old way of signing out in order to reset a user's session.

So this PR adds a new endpoint built specifically for this use case:

GET /signout/all which works in the same way that GET /signout did pre #2462 by revert cherrypicking some of the code that was removed.

This way most users who sign out will get the expected behaviour of only signing out on the current device/browser when they click on a link to sign out rather than all devices, and if required user help can send users to the new endpoint in order to sign users out from all devices/browsers if required!

@coldlink coldlink changed the title feat(signout): add GET /signout/all endpoint to sign out users on a… Add GET /signout/all endpoint Nov 6, 2023
@coldlink coldlink marked this pull request as ready for review November 6, 2023 14:56
@coldlink coldlink requested a review from a team as a code owner November 6, 2023 14:56
@coldlink coldlink requested review from guardian-ci and removed request for guardian-ci November 7, 2023 09:26
Copy link
Member

@kelvin-chappell kelvin-chappell left a comment

Choose a reason for hiding this comment

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

Looks good to me! 👍

@coldlink coldlink merged commit 4540687 into main Nov 8, 2023
25 checks passed
@coldlink coldlink deleted the mm/global-signout branch November 8, 2023 11:04
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.

2 participants