with formatters for common used formats. Available formats styles are `RubyCAS`, `Jasig`
and `Name-Value. Default is Jasig style. See module source code for more details.
+CAS_AUTO_REDIRECT_AFTER_LOGOUT - If False (default behavior, specified in CAS protocol)
+after successful logout notification page will be shown. If it's True, after successful logout will
+be auto redirect back to service without any notification.
+
PROTOCOL DOCUMENTATION
=====================
'CAS_TICKET_EXPIRATION': 5, # In minutes
'CAS_CUSTOM_ATTRIBUTES_CALLBACK': None,
'CAS_CUSTOM_ATTRIBUTES_FORMATER': 'cas_provider.attribute_formatters.jasig',
+ 'CAS_AUTO_REDIRECT_AFTER_LOGOUT': False,
}
for key, value in _DEFAULTS.iteritems():
return HttpResponse("no\n\n")
-def logout(request, template_name='cas/logout.html', auto_redirect=False):
+def logout(request, template_name='cas/logout.html', \
+ auto_redirect=settings.CAS_AUTO_REDIRECT_AFTER_LOGOUT):
url = request.GET.get('url', None)
if request.user.is_authenticated():
auth_logout(request)