Skip to content

Commit 47a1ae6

Browse files
committed
feat: ensure client is registered for authorize view
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.
1 parent fea7087 commit 47a1ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benefits/oauth/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def login(request):
4444
def authorize(request):
4545
"""View implementing OIDC token authorization."""
4646
verifier = session.verifier(request)
47-
oauth_client = oauth.create_client(verifier.auth_provider.client_name)
47+
oauth_client = register_provider(oauth, verifier.auth_provider)
4848

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

0 commit comments

Comments
 (0)