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

Commit f0d2d8c

Browse files
committed
prompt==login forces reauthentication.
1 parent de49d67 commit f0d2d8c

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
@@ -961,13 +961,15 @@ def __call__(self, client_id, endpoint_context, alg, alg_type):
961961

962962
def re_authenticate(request, authn) -> bool:
963963
"""
964-
This is where you can demand reauthentication even though the authentication in use
964+
This is where you can demand re-authentication even though the authentication in use
965965
is still valid.
966966
967967
:param request:
968968
:param authn:
969969
:return:
970970
"""
971+
logger.debug("Re-authenticate ??")
972+
971973
if "prompt" in request and request["prompt"] == "login":
972974
logger.debug("Reauthenticate due to prompt=login")
973975
return True

0 commit comments

Comments
 (0)