Skip to content

Commit 6997c26

Browse files
committed
Document the reset endpoint for the per-SP remembered choice
# Why is this change needed? Prior to this change, /reset-remember-wayf and the wayf.reset_choice_per_idp_redirect parameter were only described in the comments of parameters.yml.dist. This is an open source project, so operators and integrators need to find the endpoint in the docs and the release notes. # How does it address the issue? This change adds a section to docs/wayf_remember_choice.md and an entry to the CHANGELOG.
1 parent 1f300bc commit 6997c26

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ Features:
2323
* The per-SP mode does not require `wayf.remember_choice`. Leave `wayf.remember_choice` set to `false` when enabling it.
2424
* The cookie removal page `/authentication/idp/remove-cookies` is now also available in the per-SP mode and lists the
2525
`rememberedidps` cookie. Before, it was only available when `wayf.remember_choice` was `true`.
26+
* Added the endpoint `/reset-remember-wayf`, which removes the per-SP `rememberedidps` cookie and redirects to the URL
27+
configured in `wayf.reset_choice_per_idp_redirect`. This new parameter must not be empty. See
28+
`docs/wayf_remember_choice.md`.
2629

2730
Updated:
2831

‎docs/wayf_remember_choice.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,21 @@ The page `/authentication/idp/remove-cookies` lets a user inspect and remove the
9090
including `rememberchoice` and `rememberedidps`. The page is available when either mode is enabled, and returns a 404
9191
when both are disabled.
9292

93+
## Resetting the remembered choices
94+
95+
In the per-SP mode, other applications (for example a profile page) can let users forget all their remembered choices
96+
by sending them to:
97+
98+
https://<engineblock-host>/reset-remember-wayf
99+
100+
The endpoint removes the `rememberedidps` cookie and redirects the user (HTTP 302) to the URL configured in:
101+
102+
# Where to send the user after the reset. Required, must not be empty.
103+
wayf.reset_choice_per_idp_redirect: 'https://engine.dev.openconext.local/'
104+
105+
The endpoint only accepts `GET` requests and needs no authentication, because it only clears a cookie in the user's own
106+
browser. It does nothing when the cookie is not present. The `rememberchoice` cookie of the global mode is not touched.
107+
93108
## Switching modes
94109

95110
Cookies written in one mode are not read in the other. After switching, users have to make their choice once more.

0 commit comments

Comments
 (0)