Fixed naming of `identifier` attribute tags.
authordeyk <deyk@crossway.org>
Tue, 19 Jun 2012 19:40:29 +0000 (12:40 -0700)
committerdeyk <deyk@crossway.org>
Tue, 19 Jun 2012 19:40:29 +0000 (12:40 -0700)
cas_provider/views.py

index 155189c..3883ed0 100644 (file)
@@ -355,7 +355,8 @@ def auth_success_response(user, pgt, proxies):
                    for i in rr]
 
     if identifiers:
                    for i in rr]
 
     if identifiers:
-        attrs['identifiers'] = identifiers
+        # Singular `identifier`, as that is the name of the element tag(s).
+        attrs['identifier'] = identifiers
 
     if attrs:
         formatter = get_callable(settings.CAS_CUSTOM_ATTRIBUTES_FORMATER)
 
     if attrs:
         formatter = get_callable(settings.CAS_CUSTOM_ATTRIBUTES_FORMATER)