diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-01-31 21:32:01 -0800 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2009-01-31 21:32:01 -0800 |
commit | e865ec7da293496d6c2e67039b86c4ef9ded5a6c (patch) | |
tree | 116d6a4e8c0892d2be13acd31bacae004de4bb8b /samples/RelyingPartyMvc/Controllers/HomeController.cs | |
parent | f6d5493a42d07389421763c2f1da35b4ca7d9f45 (diff) | |
download | DotNetOpenAuth-e865ec7da293496d6c2e67039b86c4ef9ded5a6c.zip DotNetOpenAuth-e865ec7da293496d6c2e67039b86c4ef9ded5a6c.tar.gz DotNetOpenAuth-e865ec7da293496d6c2e67039b86c4ef9ded5a6c.tar.bz2 |
Added OpenID sample sites: RP MVC, RP WebForms, RP Classic ASP, OP WebForms.
Diffstat (limited to 'samples/RelyingPartyMvc/Controllers/HomeController.cs')
-rw-r--r-- | samples/RelyingPartyMvc/Controllers/HomeController.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/samples/RelyingPartyMvc/Controllers/HomeController.cs b/samples/RelyingPartyMvc/Controllers/HomeController.cs new file mode 100644 index 0000000..ac33185 --- /dev/null +++ b/samples/RelyingPartyMvc/Controllers/HomeController.cs @@ -0,0 +1,20 @@ +namespace RelyingPartyMvc.Controllers { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Web; + using System.Web.Mvc; + + public class HomeController : Controller { + public ActionResult Index() { + Response.AppendHeader( + "X-XRDS-Location", + new Uri(Request.Url, Response.ApplyAppPathModifier("~/Home/xrds")).AbsoluteUri); + return View("Index"); + } + + public ActionResult Xrds() { + return View("Xrds"); + } + } +} |