OpenConext / OpenConext/OpenConext-profile
Support global reset of all per-SP "remember my choice" entries for the WAYF
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2
- Forks
- 0
- Avg merge
- 17d 41m
- Merged PRs (30d)
- 1
Description
In https://github.com/OpenConext/OpenConext-engineblock/issues/1956 we describe a feature where a user can specify per SP which IdP they want to use. On a next login to that SP, the preferred IdP will be used automatically without user interaction.
This story will allow a user to reset that choice (globally, for all SPs at the same time).
The settings of which SP should use which IdP are stored in a cookie rememberedidps which is set on the Engineblock domain so Profile cannot easily access this. We do need to allow a user to reset/remove this cookie though.
We therefore add the following functionality to Profile
-
On the "my personal data" screen, add an entry at the bottom that shows an option to reset the cookie:
Show this option unconditionally (regardless of whether or not the user has actually done this). This is a somewhat poor user experience; a more advanced design is described in #348.
-
If the user presses the link, show a confirmation popup:
-
If the user presses "Reset all", redirect the user to
https://engineblock.dev.openconext.org/reset-remember-wayf(with theredirectparemeter set to the current profile page). This endpoint is described at https://github.com/OpenConext/OpenConext-engineblock/issues/2085
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the “my personal data” screen and inspect how existing links and confirmation popups are implemented. Add the unconditional reset option, confirm that “Reset all” redirects to the specified EngineBlock endpoint with the current profile page as the redirect parameter, and verify the complete interaction in the profile UI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100