django-allauth-cas/tests/example/views.py
Aurélien Delobelle 76fd5ca344 initial
2017-07-25 18:31:42 +02:00

15 lines
415 B
Python

# -*- coding: utf-8 -*-
from allauth_cas import views
from .provider import ExampleCASProvider
class ExampleCASAdapter(views.CASAdapter):
provider_id = ExampleCASProvider.id
url = 'https://server.cas'
version = 2
login = views.CASLoginView.adapter_view(ExampleCASAdapter)
callback = views.CASCallbackView.adapter_view(ExampleCASAdapter)
logout = views.CASLogoutView.adapter_view(ExampleCASAdapter)