Skip to content

Commit

Permalink
fix(oauth): fix client not registered exception in logout
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed Jun 25, 2024
1 parent d49aa6b commit 3f1296c
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 3f1296c

Please sign in to comment.