Brown-University-Library / django-shibboleth-remoteuser

Middleware for using Shibboleth with Django
MIT License
94 stars 75 forks source link

Added option to add callables to attribute map #77

Closed blarghmatey closed 6 years ago

blarghmatey commented 6 years ago

There are some cases where post-processing of the returned shibboleth values are necessary before saving them to the CAS application. This PR adds a way to pass a callable as the third element of the attribute map tuple to perform arbitrary mutations of the returned values.

bcail commented 6 years ago

@blarghmatey Thanks for the PR. Could you please change "callable" to something else, so it's not shadowing a built-in function? Then I'll merge.

blarghmatey commented 6 years ago

Thanks @bcail that has been updated now.