Skip to content

Commit

Permalink
Fix: oauth client not registered exception in logout (#2185)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 authored Jul 2, 2024
2 parents d49aa6b + 3f1296c commit 71180b6
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 @@ -101,7 +101,7 @@ def cancel(request):
def logout(request):
"""View implementing OIDC and application sign out."""
verifier = session.verifier(request)
oauth_client = oauth.create_client(verifier.auth_provider.client_name)
oauth_client = create_client(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 71180b6

Please sign in to comment.