_DEFAULTS = {
'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,
}
element = etree.SubElement(auth_success, CAS + name)
element.text = value
+
def name_value(auth_success, attrs):
etree.SubElement(auth_success, CAS + 'attribute', name=u'attraStyle', value=u'Name-Value')
for name, value in attrs.items():
attrs = {}
for receiver, response in signals.cas_collect_custom_attributes.send(sender=auth_success_response, user=user):
if response:
+ print "Got custom attributes:", response
attrs.update(response)
if attrs: