django-allauth-cas/tests/example/provider.py

17 lines
329 B
Python
Raw Normal View History

2017-07-25 18:31:42 +02:00
from allauth.socialaccount.providers.base import ProviderAccount
from allauth_cas.providers import CASProvider
class ExampleCASAccount(ProviderAccount):
pass
class ExampleCASProvider(CASProvider):
id = "theid"
name = "The Provider"
2017-07-25 18:31:42 +02:00
account_class = ExampleCASAccount
provider_classes = [ExampleCASProvider]