我正在使用mvc5 + c#开发网站,为用户提供外部登录选项(如Facebook、Google等)。
我尝试添加Microsoft Live作为新的登录方式,但是我无法获取连接的用户的电子邮件地址。
当某个Microsoft用户连接时,我会收到以下声明("KEY | VALUE"):
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier | *****************
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name | test
http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider | ASP.NET Identity
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier | **************
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name | ****************
urn:microsoftaccount:id | ****************
urn:microsoftaccount:name | ****************
urn:microsoftaccount:access_token | **************************************************************
有没有办法使用这些信息来获取用户的电子邮件地址?