diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-26 14:04:40 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-26 14:04:40 -0700 |
commit | d7bec791ff0b1fe6517c2b450d6fd1116d0a8ea7 (patch) | |
tree | 019bb8c875e2fa9c5ca07bb17af17891411307cf /samples/OpenIdRelyingPartyMvc/Controllers/HomeController.cs | |
parent | 540f088953154bee2356cdf5f65a097cb6d3ebe4 (diff) | |
download | DotNetOpenAuth-d7bec791ff0b1fe6517c2b450d6fd1116d0a8ea7.zip DotNetOpenAuth-d7bec791ff0b1fe6517c2b450d6fd1116d0a8ea7.tar.gz DotNetOpenAuth-d7bec791ff0b1fe6517c2b450d6fd1116d0a8ea7.tar.bz2 |
Renamed OpenID RP sample projects.
Diffstat (limited to 'samples/OpenIdRelyingPartyMvc/Controllers/HomeController.cs')
-rw-r--r-- | samples/OpenIdRelyingPartyMvc/Controllers/HomeController.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/samples/OpenIdRelyingPartyMvc/Controllers/HomeController.cs b/samples/OpenIdRelyingPartyMvc/Controllers/HomeController.cs new file mode 100644 index 0000000..d26cdd9 --- /dev/null +++ b/samples/OpenIdRelyingPartyMvc/Controllers/HomeController.cs @@ -0,0 +1,20 @@ +namespace OpenIdRelyingPartyMvc.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"); + } + } +} |