How do I get other claims of the user using ADFS?

Posted by stackuser1 on Stack Overflow See other posts from Stack Overflow or by stackuser1
Published on 2010-03-28T05:23:52Z Indexed on 2010/03/28 5:33 UTC
Read the original article Hit count: 316

Filed under:
|

Hi

I am able to authenticate the user using ADFS and succeded in getting the user alias using the below statement. Since some time, i am looking for a way in getting the other claims of the authenticated user, like email, name, roles, username etc.

Any help on this would be appreciated.

string alias = ((MicrosoftAdfsProxyRP.MicrosoftPrincipal)HttpContext.Current.User).Alias;

Response.Write (alias);

© Stack Overflow or respective owner

Related posts about adfs2.0

Related posts about dotnetopenauth