如何从ADFS 3.0获取ASP.NET 4.5的用户信息?

时间:2014-12-10 08:48:57

标签: c# asp.net .net adfs3.0

我正在尝试使用Visual Studio 2013(ASP.NET 4.5应用程序)从ADFS 3.0获取用户信息,但我不能。我已完成身份验证,但无法访问用户信息。

当我看到下一条指令的结果时:

IEnumerable<Claim> claims = ClaimsPrincipal.Current.Claims;

我明白了:

[0] = {http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn: Administrador@dreamworks.com}
[1] = {http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod: urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport}
[2] = {http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationinstant: 2014-12-10T08:35:48.717Z}

这就是全部。

0 个答案:

没有答案