Description
Dear djangosaml2 team,
I have a user profile with additional attributes to store from saml assertions, my user profile model uses default django User model with onetoonefiled -> User(django.contrib.auth.models)
My understanding from the below reading of the documentation is, if the additional attributes to store are specified in SAML_ATTRIBUTE_MAPPING then djangosaml2 will attempt to store the same in my custom profile if those attributes are not found in the User model.
Could you please help me clarify if this is true or not? My attempt to try to store extra attributes to user profile has been unsuccessful hence the question.
=> https://djangosaml2.readthedocs.io/contents/setup.html#configuration >
....
If you are using Django user profile objects to store extra attributes about your user you can add those attributes to the SAML_ATTRIBUTE_MAPPING dictionary. For each (key, value) pair, djangosaml2 will try to store the attribute in the User model if there is a matching field in that model. Otherwise it will try to do the same with your profile custom model. For multi-valued attributes only the first value is assigned to the destination field.
...
Thanks!