Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Missing Email Claim

$
0
0

I am updating our Web Application to use both Windows Live and Office 365 authentication.  The claims returned for the Windows Live authentication using Owin do not seem to return the Email claim "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress".  Our existing production application requires this value as a unique identifier for our registered users.

I have tried modifying the global.asax.cs file to user "AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.Email;", but this also seemed to require the email claim to be returned.

My Startup_Auth.cs class uses the following to include the Microsoft provider:

app.UseMicrosoftAccountAuthentication(
   clientId: ConfigurationManager.AppSettings["MicrosoftClientId"],
   clientSecret: ConfigurationManager.AppSettings["MicrosoftClientSecret"]);

How can I indicate to the Owin provider that I need the email claim included?

Thank you,

David


Viewing all articles
Browse latest Browse all 4737

Trending Articles