mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 22:16:33 +02:00
Add comments, do cleanup
This commit is contained in:
parent
bd7660de27
commit
3c0facfc9d
3 changed files with 28 additions and 13 deletions
|
@ -91,10 +91,16 @@ def login_callback(request):
|
|||
_initialize_client()
|
||||
query = parse_qs(request.GET.urlencode())
|
||||
userinfo = CLIENT.callback(query, request.session)
|
||||
|
||||
# test for need for identity verification and if it is satisfied
|
||||
# if not satisfied, redirect user to login with stepped up acr_value
|
||||
# if not satisfied, redirect user to login requiring biometric auth
|
||||
|
||||
# Tests for the presence of the vtm/vtr values in the userinfo object.
|
||||
# If they are there, then we can set a flag in our session for tracking purposes.
|
||||
needs_biometric_validation = _requires_biometric_auth(userinfo)
|
||||
request.session["needs_biometric_validation"] = needs_biometric_validation
|
||||
|
||||
# Return a redirect request to a new auth url that enables biometric validation
|
||||
if needs_biometric_validation:
|
||||
return CLIENT.create_authn_request(request.session, do_biometric_auth=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue