.netasp.net-mvcsamlclaims-based-identityws-federation

WS-Federation claims authentication (MVC.Net)


I need sample code for claims authentication for WS-Federation in MVC.Net apps. (Not .Net Core) Is there any blog/article or Microsoft documentation on how to do this? Both how to configure the app and code samples.

-Must use System.IdentityModel -SAML is the user principle


Solution

  • This old blog entry of mine should be all you need. It shows how to implement WS-Fed with System.IdentityModel and two modules, the SAM and FAM.

    If you don't trust the FAM module or you can't use it for any reason, the next blog entry shows how to implement WS-Fed manually (without any automated way of issuing the request and parsing the token).