How to access the claims attributes in .net applications (SharePoint or ASP.NET)

Check also Where is Microsoft.Identitymodel.Claims.dll public string text = “”; protected void Page_Load(object sender, EventArgs e) { text += “<table>” + “<tr><th>ClaimType</th><th>ValueType</th><th>Value</th></tr>”; foreach(var claim in ((Microsoft.IdentityModel.Claims.ClaimsIdentity)(System.Web.HttpContext.Current.User.Identity)).Claims) { text += “<tr><td>” + claim.ClaimType + “</td><td>” + claim.ValueType + “</td><td>” + claim.Value +… Continue Reading

Where is Microsoft.Identitymodel.Claims.dll ?

If you are trying to develop something with Claims (getting LDAP attributes in a ADFS environment) in SharePoint 2013 you will probably require to add a reference to Microsoft.IdentityModel.dll ; This should be available in Add Reference but most of… Continue Reading