Skip to content

Commit

Permalink
feat(oauth): add optional error_code to authorize view
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed May 29, 2024
1 parent 3420fbb commit b890beb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benefits/oauth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def authorize(request):

session.update(request, oauth_token=id_token, oauth_claim=stored_claim)

analytics.finished_sign_in(request)
if claim_value is not None and claim_value >= 10:
analytics.finished_sign_in(request, error=claim_value)
else:
analytics.finished_sign_in(request)

return redirect(ROUTE_CONFIRM)

Expand Down

0 comments on commit b890beb

Please sign in to comment.