django-allauth-ens/allauth_ens/providers/clipper/views.py

16 lines
416 B
Python
Raw Normal View History

2017-08-03 12:40:52 +02:00
# -*- coding: utf-8 -*-
from allauth_cas import views
from .provider import ClipperProvider
class ClipperCASAdapter(views.CASAdapter):
provider_id = ClipperProvider.id
url = 'https://cas.eleves.ens.fr'
version = 3
login = views.CASLoginView.adapter_view(ClipperCASAdapter)
callback = views.CASCallbackView.adapter_view(ClipperCASAdapter)
logout = views.CASLogoutView.adapter_view(ClipperCASAdapter)