ASP.NET MVC Web Application With Federated Authentication

ASP.NET MVC Web Application With Federated Authentication

Back to Windows Azure Active Directory Solutions For Developers


Scenario

In this scenario you are developing ASP.NET MVC web application and you need to implement authentication using either Internet identities such as Live ID, Google, Facebook, Yahoo!, or OpenID 2.0 or enterprise identities managed by corporate Active Directory.
  

  • Web Application is developed using ASP.NET MVC.
  • Internet identities such as Live ID, Facebook, Google, Yahoo!, OpenID 2.0
  • Enterprise identities managed by corporate Active Directory (AD)

Solution Approach

Windows Azure AppFabrice Access Control Service (ACS) is used to solve this scenario. 

  • ACS provides federation with Internet identities such as Live ID, Google, Facebook, Yahoo!, OpenID 2.0
  • ACS provides federation with enterprise Active Directory (AD) via AD FS 2.0
  • WIF is used to parse and validate the incoming tokens at the application.

Analysis

In this solution end user tries to access the web application and the request being denied since WIF identifies there is no token in it. WIF redirects to the configured ACS namespace. ACS redirects the end user to the configured identity provider (IdP) where he submits his credentials. Upon successful authentication IdP issues a token and the end user seamlessly redirected to ACS where IdP's token is transformed into ACS token which is sent back to the end user. Then it is redirected back to the web application where the ACS' token validated by WIF. All that occurs seamlessly to the end user. For more details read Web Applications and ACS.

How-To's

Code Samples

Resources


See Also


Other Languages

This article is also available in the following languages:

Deutsch (de-DE)

Leave a Comment
  • Please add 2 and 5 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Horizon_Net edited Revision 10. Comment: Added link to german version and updated language tags, typo

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Horizon_Net edited Revision 10. Comment: Added link to german version and updated language tags, typo

  • Good Article.

  • Richard Mueller edited Revision 12. Comment: Fixed duplicate <a name> tags in headings in HTML so TOC works, removed (en-US) from title, added tags

  • Excellent !!! Diagram helps to know the concept.

  • Carsten Siemens edited Revision 15. Comment: Fixed typos

Page 1 of 1 (5 items)