Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit 22e3b7d

Browse files
committed
prompt==login forces reauthentication.
1 parent 4ee4b3f commit 22e3b7d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/oidcop/oauth2/authorization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,9 @@ def re_authenticate(request, authn) -> bool:
970970
"""
971971
logger.debug("Re-authenticate ??: {}".format(request))
972972

973-
if "prompt" in request and request["prompt"] == "login":
973+
_prompt = request.get("prompt")
974+
logger.debug(f"Prompt={_prompt}")
975+
if _prompt == "login":
974976
logger.debug("Reauthenticate due to prompt=login")
975977
return True
976978

0 commit comments

Comments
 (0)