summaryrefslogtreecommitdiffstats
path: root/src/OpenID/OpenIdProviderMvc/Controllers/HomeController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/OpenID/OpenIdProviderMvc/Controllers/HomeController.cs')
-rw-r--r--src/OpenID/OpenIdProviderMvc/Controllers/HomeController.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/OpenID/OpenIdProviderMvc/Controllers/HomeController.cs b/src/OpenID/OpenIdProviderMvc/Controllers/HomeController.cs
new file mode 100644
index 0000000..fb03ce2
--- /dev/null
+++ b/src/OpenID/OpenIdProviderMvc/Controllers/HomeController.cs
@@ -0,0 +1,29 @@
+namespace OpenIdProviderMvc.Controllers {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Web;
+ using System.Web.Mvc;
+
+ [HandleError]
+ public class HomeController : Controller {
+ public ActionResult Index() {
+ if (Request.AcceptTypes.Contains("application/xrds+xml")) {
+ ViewData["OPIdentifier"] = true;
+ return View("Xrds");
+ }
+
+ ViewData["Message"] = "Welcome to ASP.NET MVC!";
+ return View();
+ }
+
+ public ActionResult About() {
+ return View();
+ }
+
+ public ActionResult Xrds() {
+ ViewData["OPIdentifier"] = true;
+ return View();
+ }
+ }
+}