SSO: Explain the rationale behind prompt=login

We might reconsider it in the future.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Frédéric Mangano-Tarumi 2020-07-14 15:34:06 +02:00 committed by Lukas Fleischer
parent c048cf21c0
commit 0ac287dfa0

View file

@ -28,6 +28,13 @@ oauth.register(
@router.get("/sso/login")
async def login(request: Request):
"""
Redirect the user to the SSO providers login page.
We specify prompt=login to force the user to input their credentials even
if theyre already logged on the SSO. This is less practical, but given AUR
has the potential to impact many users, better safe than sorry.
"""
redirect_uri = aurweb.config.get("options", "aur_location") + "/sso/authenticate"
return await oauth.sso.authorize_redirect(request, redirect_uri, prompt="login")