1 from cas_provider.signals import cas_collect_custom_attributes
4 def user_attributes(sender, user, **kwargs):
6 'firstname': user.first_name,
7 'lastname': user.last_name,
8 'cn': ' '.join((user.first_name, user.last_name)),
11 cas_collect_custom_attributes.connect(user_attributes)