OpenConext / OpenConext/OpenConext-engineblock

Add endpoint to remove "remember my choice" cookie

Open
#2,085 2 comments 0 reactions 0 assignees View on GitHub

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_redirect to parameters.yml that 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 rememberedidps and 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.