2017-07-25 18:31:42 +02:00
|
|
|
from allauth_cas import views
|
|
|
|
|
|
|
|
from .provider import ExampleCASProvider
|
|
|
|
|
|
|
|
|
|
|
|
class ExampleCASAdapter(views.CASAdapter):
|
|
|
|
provider_id = ExampleCASProvider.id
|
2024-01-25 15:33:24 +01:00
|
|
|
url = "https://server.cas"
|
2017-07-25 18:31:42 +02:00
|
|
|
version = 2
|
|
|
|
|
|
|
|
|
|
|
|
login = views.CASLoginView.adapter_view(ExampleCASAdapter)
|
|
|
|
callback = views.CASCallbackView.adapter_view(ExampleCASAdapter)
|
|
|
|
logout = views.CASLogoutView.adapter_view(ExampleCASAdapter)
|