Skip to content

Commit

Permalink
fix(steam): Require OpenID
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Aug 11, 2023
1 parent c733459 commit 69d79cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions allauth/socialaccount/providers/steam/provider.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import requests

from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.urls import reverse
from django.utils.http import urlencode

Expand All @@ -9,6 +11,12 @@
)


if "allauth.socialaccount.providers.openid" not in settings.INSTALLED_APPS:
raise ImproperlyConfigured(
"The steam provider requires 'allauth.socialaccount.providers.openid' to be installed"
)


class SteamAccount(OpenIDAccount):
def to_str(self):
dflt = super(SteamAccount, self).to_str()
Expand Down

0 comments on commit 69d79cb

Please sign in to comment.