-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microsoft.Owin.Security.MicrosoftAccount seems to return unverified email #545
Comments
I'm not sure why setting
Microsoft.Owin.Security.MicrosoftAccount uses the v2 authorize and token endpoints, but it doesn't map everything possible from the Fortunately, if you have an eagle eye, you'll notice the https://stackoverflow.com/a/22325623/719967 shows an example of how to do that. It's an async callback, and you have the
We generally suggest using something other than email like |
@halter73 Thankyou for your response. We made authentication requests to v2 authorize and token endpoints manually with |
We have been using Microsoft.Owin.Security.MicrosoftAccount 4.2.2 for performing Microsoft login. The Email property from external login info was used to identify the user, but it seems like it returns back unverified email, which should not be used to identify user.
According to this article we are supposed to migrate away from using email claims for user identifications, but we are unable to get any of the remediation steps listed by Microsoft to work.
Setting the authentication behavior removeUnverifiedEmailClaim to true using graph API, doesn't work and still returns unverified email.
Further it seems like we can return an optional claim xms_edov to determine verification status but we were unable to get this claim returned in the id token as well.
if we make direct requests to grab the token on the v2 authorize and token end points the added optional claims seems to be returned fine. But using the middleware those claims are not getting returned.
What is the suggested step to make sure we don't get unverified email back using Microsoft Authentication?
The text was updated successfully, but these errors were encountered: