django_microsoft_auth icon indicating copy to clipboard operation
django_microsoft_auth copied to clipboard

Don't require the 'email' field in the claims data.

Open whyscream opened this issue 1 year ago • 1 comments

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.

whyscream avatar Apr 14 '23 12:04 whyscream

Just noticed that https://github.com/AngellusMortis/django_microsoft_auth/issues/234 describes the same issue

whyscream avatar Apr 18 '23 13:04 whyscream