Add biometric

This commit is contained in:
zandercymatics 2024-05-16 12:14:03 -06:00
parent 5bfd6c867f
commit 28e18e705b
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 22 additions and 8 deletions

View file

@ -96,9 +96,13 @@ def login_callback(request):
if _requires_step_up_auth(userinfo):
# add acr_value to request.session
# LOOK HERE this is basically the flag that indicates that we should proceed
request.session["acr_value"] = CLIENT.get_step_up_acr_value()
return CLIENT.create_authn_request(request.session)
if "acr_value" in request.session:
request.session.pop("acr_value")
extra_args = {
"vtm": CLIENT.get_vtm_value(),
}
print(f"session is: {request.session}")
return CLIENT.create_authn_request(request.session, add_acr=False, extra_args=extra_args)
user = authenticate(request=request, **userinfo)
if user: