Alternative to signals approach is to use code in this pull request and in settings.py
define:
SAML_PROFILE_MODULE = 'app.UserProfile'
SAML_ATTRIBUTE_MAPPING = {
'samlAttributeThatDefinesID': ('employee_id',),
}
Values in SAML_ATTRIBUTE_MAPPING
should be tuples of field names from app.UserProfile
or auth.User
models that you want to populate with saml attribute given as the key.
Disclaimer: this PR is still open and it is the question if it will make its way to the upstream repo.