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

15 lines
391 B
Python
Raw Normal View History

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
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)