OpenConext / OpenConext/OpenConext-profile

Support global reset of all per-SP "remember my choice" entries for the WAYF

Open
#345 1 comment 0 reactions 0 assignees View on GitHub

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:

    Image

    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:

    Image
  • If the user presses "Reset all", redirect the user to https://engineblock.dev.openconext.org/reset-remember-wayf (with the redirect paremeter 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.