Answered by:
geneva / asp.net mvc

Question
-
Will geneva work with asp.net mvc? So far the examples I have seen are all based upon traditional asp.net (no mvc). Are there any special considerations or configurations when using geneva with MVC?
thanks!Tuesday, December 16, 2008 5:21 PM
Answers
-
I implemented Geneva on ASP.NET MVC relying party using an ActionFilter. Here is the post with some code:
http://blogs.southworks.net/mwoloski/2009/04/23/multi-tenant-federation-with-geneva-framework-and-microsoft-net-services-access-control/
Matias- Marked as answer by scott_m Sunday, April 26, 2009 2:06 AM
Saturday, April 25, 2009 5:09 PM -
Hi Scott,OK - I assumed you were talking about Information Cards and the geneva framework and I may have been mistaken. If not, you can see a rough and ready example here of an Information Card control in MVC using Geneva to decrypt a token of a self-issued ICard. It's work in progress (pulled it together last night) but you should be able to get the jist of where I was going.Your comments are welcome.
DC- Marked as answer by scott_m Sunday, April 26, 2009 2:06 AM
Saturday, April 25, 2009 8:20 PM
All replies
-
I don't see why they would not work with MVC. Most of the work validating the token and setting up the session is done before you ever get into the actual ASP.NET code. You should be able to take and bolt the Geneva code on to the existing MVC code without issue. I'm currently not playing with the MVC beta, but in theory there should be no issues.
jlavin- Proposed as answer by Marc GoodnerMicrosoft employee Monday, April 13, 2009 6:11 PM
Wednesday, December 17, 2008 5:25 PM -
Hi Scott,I can confirm that the Geneva framework does indeed work with ASP.NET MVC. Essentially you have an HTML Object which posts like any other form element to your controller, from which you use the Geneva framework to handle. I wrote my own MVC control, controller and such and it wasn't THAT difficult.Tell you what, As I don't think there are any examples anywhere yet, I will write a post on it tonight and post a link here. Would that be usefull?Cheers!David
</davidChristiansen>Friday, April 24, 2009 3:31 PM -
Yes, that would be very helpful.Thanks!
Friday, April 24, 2009 3:33 PM -
Something I did was to write my two subclasses for the ActionResult class... one for the RP web site, the other for the STS web site. These classes are appropriately named RSTActionResult.cs and RSTResponseActionResult.cs. The former creates a SignInMessage object and redirects to its URL (which is the URL for the STS). The latter formulates a SignInResponse message and sends back those results.
Friday, April 24, 2009 7:25 PM -
I implemented Geneva on ASP.NET MVC relying party using an ActionFilter. Here is the post with some code:
http://blogs.southworks.net/mwoloski/2009/04/23/multi-tenant-federation-with-geneva-framework-and-microsoft-net-services-access-control/
Matias- Marked as answer by scott_m Sunday, April 26, 2009 2:06 AM
Saturday, April 25, 2009 5:09 PM -
Hi Scott,OK - I assumed you were talking about Information Cards and the geneva framework and I may have been mistaken. If not, you can see a rough and ready example here of an Information Card control in MVC using Geneva to decrypt a token of a self-issued ICard. It's work in progress (pulled it together last night) but you should be able to get the jist of where I was going.Your comments are welcome.
DC- Marked as answer by scott_m Sunday, April 26, 2009 2:06 AM
Saturday, April 25, 2009 8:20 PM