Marie had this problem on Firefox that, on login she was automatically redirected to a cached redirect_uri.
As that URI was not correct anymore, she was kind of trapped on this redirection loop.
I do not know how to reproduce the problem. I can't reproduce it now, but I just had it, Plup and Marie as well.
Edited
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
Clearing the cache on log-out seems a good practice. But I'm not sure it's enough. AFAIK, redirect_uri is only used during permission request. I don't see why it should be stored further.
By Christophe Henry on 2019-10-17T11:28:26 (imported from GitLab project)
Ok, so looking at the code, the Django OIDC lib is very agressive, checking that every field submitted for the provided client_id is correct. I don't know if this goes beyond OIDC spec of if the spec actually requires that every field is checked. I'll dig it.
Meanwhile, what I propose is — beyond erasing the cache after a logout — is erasing the cache when an error is met and start the process again. This could be a problem, though, since it may silence errors that are actually relevant.
By Christophe Henry on 2019-10-17T12:06:08 (imported from GitLab project)
Doing this on login will create a new client registration each time you login. Which is ok but a bit aggressive. As a patch, I'm ok with this solution.
By Christophe Henry on 2019-10-17T12:21:43 (imported from GitLab project)