1 """Django CAS 1.0/2.0 authentication backend"""
3 from django.conf import settings
8 'CAS_ADMIN_PREFIX': None,
9 'CAS_EXTRA_LOGIN_PARAMS': None,
10 'CAS_IGNORE_REFERER': False,
11 'CAS_LOGOUT_COMPLETELY': True,
12 'CAS_REDIRECT_URL': '/',
13 'CAS_RETRY_LOGIN': False,
14 'CAS_SERVER_URL': None,
18 for key, value in _DEFAULTS.iteritems():
20 getattr(settings, key)
21 except AttributeError:
22 setattr(settings, key, value)
23 # Suppress errors from DJANGO_SETTINGS_MODULE not being set