I applied django-auth-adfs package to perform 2FactorAuthentication on AzureAD.
Hi,
I got an Azure engineer to configure the following link, It works well.
azure_ad_config_guide
All attributes except email have been synchronized from Azure AD to the User Table in the Django table correctly. Why Email from AzureAD has not been updated to email attributes on User Table like other fields?
The main point is that I am not sure whether the field mapping between Azure AD and the User Table is correct or not.
this is my configuration in settings.py , To map on Azure AD, my Azure Engineer recommends 'email': 'mail' instead of 'email': 'email'
But I tried it out, it had nothing happened, The email is still empty.
# checkout the documentation for more settings
AUTH_ADFS = {
'AUDIENCE': 'xxxx',
'CLIENT_ID':'yyyy',
'CLIENT_SECRET': 'xxxxx',
'CLAIM_MAPPING': {'first_name': 'given_name',
'last_name': 'family_name',
'email': 'mail'},
'GROUPS_CLAIM': 'roles',
'MIRROR_GROUPS': True,
'USERNAME_CLAIM': 'upn',
'TENANT_ID': 'xxxxx',
'RELYING_PARTY_ID': 'xxxx',
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too