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):
|
2024-01-25 15:33:24 +01:00
|
|
|
id = "theid"
|
|
|
|
name = "The Provider"
|
2017-07-25 18:31:42 +02:00
|
|
|
account_class = ExampleCASAccount
|
|
|
|
|
|
|
|
|
|
|
|
provider_classes = [ExampleCASProvider]
|