Closed tarunpaul closed 5 years ago
I have created a pull request https://github.com/jbittel/django-mama-cas/pull/75
Please let me know if this looks ok.
@tarunpaul thanks! I've taken a quick look and the PR is missing a test. I'd say that the for loop you created overwrites the attribute.text with the last value of the list. A test would prove me wrong ;)
Could you please add the test?
@manelclos I have added a test case. Please take a look. And thank you for keeping up the code standards. Really appreciate it. :)
Hi @manelclos, Please let me know if this looks ok or if I have missed anything. Few test environments seem to fail on travis-ci. Two of which are unable to connect to internet to download the specific python version. But locally it seems to pass all test cases.
$ python3 runtest.py Creating test database for alias 'default'... Ran 157 tests in 1.767s OK Destroying test database for alias 'default'...
@tarunpaul just checked the code locally, all good! Let's see if @jbittel has some time to approve it.
Great! Thank you @manelclos :)
Merged. Much appreciated!
The ValidationResponse should handle list attributes.
https://apereo.github.io/cas/4.2.x/protocol/CAS-Protocol-Specification.html#257-example-response-with-custom-attributes
"affiliation" : [ "staff", "faculty" ]
Should translate to