django_microsoft_auth
django_microsoft_auth copied to clipboard
Don't require the 'email' field in the claims data.
In some implementations, the email
field isn't returned from the authentication server. In those cases, make something up that will probably be just as stable as the users' email address.
In our current setup, we actually only receive the sub
(Microsoft ID), name
and preferred_username
fields as general usable data for identifying a user. In our Django app, we actually identify the accounts using the Microsoft ID, but we see the need for an e-mail address to create the user.
Just noticed that https://github.com/AngellusMortis/django_microsoft_auth/issues/234 describes the same issue