mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 22:16:33 +02:00
Add biometric
This commit is contained in:
parent
5bfd6c867f
commit
28e18e705b
3 changed files with 22 additions and 8 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue