Skip to content

Commit

Permalink
feat: ensure client is registered for authorize view
Browse files Browse the repository at this point in the history
currently the only way to get to the authorize view is from the login
view, so the client should already be registered. But it doesn't hurt
to call it here either.
  • Loading branch information
angela-tran committed Jun 12, 2024
1 parent fea7087 commit 47a1ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benefits/oauth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def login(request):
def authorize(request):
"""View implementing OIDC token authorization."""
verifier = session.verifier(request)
oauth_client = oauth.create_client(verifier.auth_provider.client_name)
oauth_client = register_provider(oauth, verifier.auth_provider)

if not oauth_client:
raise Exception(f"oauth_client not registered: {verifier.auth_provider.client_name}")
Expand Down

0 comments on commit 47a1ae6

Please sign in to comment.