Is there a sample application for using WIF with a ASP.NET MVC application? Can someone help me get started trying to integrate both of these technologies?
Id with / causes problems with routing [duplicate]
1:How to define route & controller structure for 2 controllers?
I found this by far the best case to receive started with is Dominick Baiers StarterSTS. ASP.NET MVC - HTML.BeginForm and SSL. asp.net mvc IDataErrorInfo validation when using ViewModel Even if you don't use this as your STS, the tutorials on the site are a great starting point. How to make data available when one Controller's View calls another Controller's View?There are no ASP.NET MVC tutorials specifically although I've got it working in just the same way as an ASP.NET WebForms.. Is WPF and MVC same concepts? So in short.... jQUERY onclick post
- Download WIF and the WIF SDK - http://msdn.microsoft.com/en-us/evalcenter/dd440951.aspx
- Download StarterSTS - http://startersts.codeplex.com/
- Follow the STS Introductory video - https://identity.thinktecture.com/download/startersts/v1/StarterSTS_InitialSetup.wmv
- Follow the ASP.NET Tutorial http://identity.thinktecture.com/download/starterSTS/v1/StarterSTS_FederatingWebApps.wmv
- Create a new MVC Project in VS 2010
- On the project right-click, select "Add STS reference" and follow the same wizard steps as the WebForms application. What is the best way to store WMD input/markdown in SQL server and display later?(to add the WIF information to your web.config file.)
where RP is the URI of your own MVC based Relying Party.. Once you have all this set up, using ananother STS such as ADFS (Active Directory Federation Services) is easy. (as you don't need to did anything another than reconfigure your app to use it.). As a side note, more screen casts must be found here.. Hope this helps. It's all a bit of a minefield :-).
WSFederationAuthenticationModule.FederatedSignOut(null, new Uri("https://RP/"));
There's a short, high-level article this should cover the basics here.. For real sample code, Microsoft's Identity Developer Training Kit includes examples in ASP.NET (as well as Silverlight and more).. Also, Microsoft published a lengthy PDF called "A Quick Guide to Claims-Based Identity and Access Control" which should be a helpful reference (chapter 3)..
Once you understand how WIF works with ASP.NET WebForms, take a look at the post here to create a custom Authorization Attrialthough e in ASP.NET MVC.
A simple case of MVC + WIF must be found in the "Federation with Multiple Partners" chapter of the guide refered to above. Direct link is here: http://msdn.microsoft.com/en-us/library/ff359105(v=PandP.10).aspx. The basics of how it works are documented here: http://blogs.msdn.com/b/eugeniop/archive/2010/04/03/wif-and-mvc-how-it-works.aspx.