Project

General

Profile

« Previous | Next » 

Revision 700b2afb

Added by Serghei Mihai about 11 years ago

handling authentication through django-mellon

View differences:

corbo/settings.py
RSS_DESCRIPTION = ''
RSS_LINK = ''
RSS_LINK_TEMPLATE = '/#announce{0}'
# django-mellon settings
MELLON_ATTRIBUTE_MAPPING = {
'username': '{attributes[username][0]}',
'email': '{attributes[email][0]}',
'first_name': '{attributes[first_name][0]}',
'last_name': '{attributes[last_name][0]}',
}
if 'mellon' in INSTALLED_APPS:
AUTHENTICATION_BACKENDS = ('mellon.backends.SAMLBackend', )
LOGIN_URL = 'mellon_login'
LOGOUT_URL = 'mellon_logout'

Also available in: Unified diff