-if 'django_cas' in INSTALLED_APPS:
- AUTHENTICATION_BACKENDS = (
- 'django.contrib.auth.backends.ModelBackend',
- 'fnpdjango.auth_backends.AttrCASBackend',
- )
+AUTHENTICATION_BACKENDS = (
+ 'django.contrib.auth.backends.ModelBackend',
+ 'django_cas_ng.backends.CASBackend',
+)
GRAVATAR_DEFAULT_IMAGE = 'http://localhost:8000/static/img/avatar.png'
-CAS_SERVER_URL = 'http://logowanie.nowoczesnapolska.org.pl/cas/'
-CAS_VERSION = '3'
+CAS_SERVER_URL = 'https://logowanie.nowoczesnapolska.org.pl/cas/'
+CAS_VERSION = '2'
+CAS_APPLY_ATTRIBUTES_TO_USER = True
+CAS_RENAME_ATTRIBUTES = {
+ 'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}
HONEYPOT_FIELD_NAME='miut'
}),
)
-if 'django_cas' in settings.INSTALLED_APPS:
+if 'django_cas_ng' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
- (r'^accounts/login/$', 'django_cas.views.login'),
- (r'^accounts/logout/$', 'django_cas.views.logout'),
- (r'^admin/login/$', 'django_cas.views.login'),
- (r'^admin/logout/$', 'django_cas.views.logout'),
+ (r'^accounts/login/$', 'django_cas_ng.views.login'),
+ (r'^accounts/logout/$', 'django_cas_ng.views.logout'),
+ (r'^admin/login/$', 'django_cas_ng.views.login'),
+ (r'^admin/logout/$', 'django_cas_ng.views.logout'),
)
urlpatterns += patterns('',
-i https://py.mdrn.pl/simple
Django>=1.7,<1.8
-django_cas>=2.1,<2.2
Pillow
sorl-thumbnail==12.4.1
django-pagination
django-honeypot==0.4.0
+django-cas-ng==3.5.10
django-migdal==0.8.6
-fnpdjango==0.4.1
+fnpdjango[textile]==0.4.1
python-slugify
django-markupfield==1.4.3