1
Vote

Feature Request: AuthenticatedMessage contain ActionResult

description

While implementing a MessageHandler for AuthenticatedMessage, I have a case in which I would like to return an result rather than just the ReturnUrl. I'd like to add a Result property to the AuthenticatedMessage of type ActionResult. The OpenIdController.Result on successful authentication would return the message.Result instead of creating a new RedirectResult to the ReturnUrl. Setting the ReturnUrl could set the Result to a RedirectResult to the value.

This would allow the handler to do some more interesting work than just redirect to a particular URL. For example, I would like to transfer control (http://stackoverflow.com/questions/799511/how-to-simulate-server-transfer-in-asp-net-mvc/1242525) to Account.Register to tie OpenId in to ASP.Net the membership API.

comments

rockon1119 wrote Jan 23, 2012 at 8:33 PM

That's an interesting idea. Won't take much to do that. In fact, I think it would make a great addition to the Sample folder of the project once implemented. Think you could implement it, and add an example that ties OpenId to ASP.NET Membership?