My azure web app is authenticated by Microsoft Account login. I enabled it through Azure portal with changing authentication/authorization settings of web app.This does not need any change in web app code. And authentication part is working fine.
Now I want the email Id of the user who gets authenticated before accessing the web app.
I tried to read User.Identity
as System.Security.Claims.ClaimsPrincipal
. But this is coming as null.
How to access the email Id of authenticated user?