OpenConext / OpenConext/OpenConext-engineblock
Add endpoint to remove "remember my choice" cookie
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 17
- Forks
- 25
- Avg merge
- 4d 1h
- 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 ticket describes an endpoint that allows users to reset these choices.
-
Add a global configuration option
wayf.reset_choice_per_idp_redirecttoparameters.ymlthat contains a url to redirect the user to after resetting the choice (see below) -
Implement a front-end page/endpoint as follows:
- It is located at
https://engineblock.dev.openconext.org/reset-remember-wayf - When the user visits this page, check if they send a cookie
rememberedidpsand if so, remove it. - Log a message with level INFO and message "WAYF-remember-my-choice cookie removed (had
<number>entries)" - After removing the cookie, redirect the user (302) to the url set in
wayf.reset_choice_per_idp_redirect
- It is located at
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 with parameters.yml and trace the existing WAYF routing and endpoint handlers to locate the /reset-remember-wayf entry point. Check the relevant endpoint tests or add coverage for cookie removal, INFO logging, and the 302 redirect configured by wayf.reset_choice_per_idp_redirect; done means all specified behaviors are verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authentication
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100