summaryrefslogtreecommitdiffstats
path: root/src/OAuth/OAuthAuthorizationServer/Views/Home
diff options
context:
space:
mode:
Diffstat (limited to 'src/OAuth/OAuthAuthorizationServer/Views/Home')
-rw-r--r--src/OAuth/OAuthAuthorizationServer/Views/Home/About.aspx12
-rw-r--r--src/OAuth/OAuthAuthorizationServer/Views/Home/CreateDatabase.aspx19
-rw-r--r--src/OAuth/OAuthAuthorizationServer/Views/Home/Index.aspx18
3 files changed, 49 insertions, 0 deletions
diff --git a/src/OAuth/OAuthAuthorizationServer/Views/Home/About.aspx b/src/OAuth/OAuthAuthorizationServer/Views/Home/About.aspx
new file mode 100644
index 0000000..335c141
--- /dev/null
+++ b/src/OAuth/OAuthAuthorizationServer/Views/Home/About.aspx
@@ -0,0 +1,12 @@
+<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
+
+<asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server">
+ About Us
+</asp:Content>
+
+<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
+ <h2>About</h2>
+ <p>
+ Put content here.
+ </p>
+</asp:Content>
diff --git a/src/OAuth/OAuthAuthorizationServer/Views/Home/CreateDatabase.aspx b/src/OAuth/OAuthAuthorizationServer/Views/Home/CreateDatabase.aspx
new file mode 100644
index 0000000..e7d57cc
--- /dev/null
+++ b/src/OAuth/OAuthAuthorizationServer/Views/Home/CreateDatabase.aspx
@@ -0,0 +1,19 @@
+<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/Site.Master" %>
+
+<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="MainContent">
+ <% if (ViewData["Success"] != null) {
+ %>
+ <p>
+ Database (re)created!</p>
+ <p>
+ Note that to be useful, you really need to either modify the database to add an
+ account with data that will be accessed by this sample, or modify this very page
+ to inject that data into the database.
+ </p>
+ <%
+ }
+ %>
+ <p style="color: Red; font-weight: bold">
+ <%= ViewData["Error"] %>
+ </p>
+</asp:Content>
diff --git a/src/OAuth/OAuthAuthorizationServer/Views/Home/Index.aspx b/src/OAuth/OAuthAuthorizationServer/Views/Home/Index.aspx
new file mode 100644
index 0000000..b4b1235
--- /dev/null
+++ b/src/OAuth/OAuthAuthorizationServer/Views/Home/Index.aspx
@@ -0,0 +1,18 @@
+<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
+
+<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
+ Home Page
+</asp:Content>
+<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
+ <h2>
+ DotNetOpenAuth presents the OAuth 2.0 Authorization Server!
+ </h2>
+ <p>
+ To learn more about DotNetOpenAuth visit <a href="http://www.DotNetOpenAuth.net/"
+ title="DotNetOpenAuth web site">http://www.DotNetOpenAuth.net/</a>.
+ </p>
+ <% using (Html.BeginForm("CreateDatabase", "Home")) {%>
+ <input type="submit" value="(Re)Create Database" />
+ <%
+ }%>
+</asp:Content>