The only difference between prompt=login and prompt=select_account seems to be that with prompt=login the promptGET parameter is removed from next_page before redirecting to the login page.
It looks like because it is not removed with prompt=select_account we end up with an infinite loop.
Probably we should just make prompt=select_acconunt behave the same as prompt=login.
To properly support prompt=select_account in the future, we'd probably need to provide some sort of hook so that developers can add logic to handle this special case correctly on the login page 🤔 . Perhaps pass the prompt=select_accountGET parameter to the login page itself, instead of in next_page.
related to https://github.com/juanifioren/django-oidc-provider/issues/187
The only difference between
prompt=login
andprompt=select_account
seems to be that withprompt=login
theprompt
GET
parameter is removed fromnext_page
before redirecting to the login page. It looks like because it is not removed withprompt=select_account
we end up with an infinite loop.Probably we should just make
prompt=select_acconunt
behave the same asprompt=login
.To properly support
prompt=select_account
in the future, we'd probably need to provide some sort of hook so that developers can add logic to handle this special case correctly on the login page 🤔 . Perhaps pass theprompt=select_account
GET
parameter to the login page itself, instead of innext_page
.