Implementing Authentication using ADFS in ASP.NET?

adfs, asp.net, authentication, dynamics-crm-2011

Solution

This is standard workflow for a claims-enabled ASP.NET application.

e.g. Building a test claims-aware ASP.NET application and integrating it with ADFS 2.0 Security Token Service (STS).

This uses VS 2010. In VS 2012, the same utility is called "Identity and Access Tool". In VS 2013, it's part of the project creation.

Basically:

- Create your application

- Add WIF as reference in .NET 3.5

- Update web.config using above utility

- Add your application as a Relying Party in ADFS

Problem

I am developing a website that should authenticate users using ADFS. Basically, we have a CRM Dynamics deployed on a server, and the CRM Dynamics is having ADFS authentication. Now, I am writing a .NET website that will target the CRM Dynamics and that .NET website will be available to public. In order to implement authentication using ADFS, I read about this blog, but most of the information are unclear. Anyone having an experience implementing ADFS authentication in ASP.NET site? Any help on this much appreciated. thanks

Original source