OK, why isn't that working?
authordeyk <deyk@crossway.org>
Mon, 16 Apr 2012 18:53:46 +0000 (11:53 -0700)
committerdeyk <deyk@crossway.org>
Mon, 16 Apr 2012 18:53:46 +0000 (11:53 -0700)
cas_provider/__init__.py
cas_provider/attribute_formatters.py
cas_provider/views.py

index d5a3520..1dd6c7a 100644 (file)
@@ -4,7 +4,6 @@ __all__ = []
 
 _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,
 }
index 3f3ab3c..a04828d 100644 (file)
@@ -31,6 +31,7 @@ def ruby_cas(auth_success, attrs):
             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():
index af36955..715d0ce 100644 (file)
@@ -339,6 +339,7 @@ def auth_success_response(user, pgt, proxies):
     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: