Skip to content

Commit

Permalink
fix(example): Don't create app for 'openid_connect'
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Aug 13, 2023
1 parent b8bf1c9 commit abb196c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/example/demo/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def setup_dummy_social_apps(sender, **kwargs):

site = Site.objects.get_current()
for provider_class in registry.get_class_list():
if issubclass(provider_class, (OAuthProvider,OAuth2Provider)):
if (
issubclass(provider_class, (OAuthProvider, OAuth2Provider))
and provider_class.id != "openid_connect"
):
try:
SocialApp.objects.get(provider=provider_class.id, sites=site)
except SocialApp.DoesNotExist:
Expand Down

0 comments on commit abb196c

Please sign in to comment.