summaryrefslogtreecommitdiffstats
path: root/src/OAuth/OAuthAuthorizationServer/Views/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/OAuth/OAuthAuthorizationServer/Views/Shared')
-rw-r--r--src/OAuth/OAuthAuthorizationServer/Views/Shared/Error.aspx11
-rw-r--r--src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx14
-rw-r--r--src/OAuth/OAuthAuthorizationServer/Views/Shared/Site.Master40
3 files changed, 65 insertions, 0 deletions
diff --git a/src/OAuth/OAuthAuthorizationServer/Views/Shared/Error.aspx b/src/OAuth/OAuthAuthorizationServer/Views/Shared/Error.aspx
new file mode 100644
index 0000000..144df3f
--- /dev/null
+++ b/src/OAuth/OAuthAuthorizationServer/Views/Shared/Error.aspx
@@ -0,0 +1,11 @@
+<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>" %>
+
+<asp:Content ID="errorTitle" ContentPlaceHolderID="TitleContent" runat="server">
+ Error
+</asp:Content>
+
+<asp:Content ID="errorContent" ContentPlaceHolderID="MainContent" runat="server">
+ <h2>
+ Sorry, an error occurred while processing your request.
+ </h2>
+</asp:Content>
diff --git a/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx b/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx
new file mode 100644
index 0000000..9afaab3
--- /dev/null
+++ b/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx
@@ -0,0 +1,14 @@
+<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
+<%
+ if (Request.IsAuthenticated) {
+%>
+ Welcome <b><%: Page.User.Identity.Name %></b>!
+ [ <%: Html.ActionLink("Log Off", "LogOff", "Account") %> ]
+<%
+ }
+ else {
+%>
+ [ <%: Html.ActionLink("Log On", "LogOn", "Account") %> ]
+<%
+ }
+%>
diff --git a/src/OAuth/OAuthAuthorizationServer/Views/Shared/Site.Master b/src/OAuth/OAuthAuthorizationServer/Views/Shared/Site.Master
new file mode 100644
index 0000000..43f68e1
--- /dev/null
+++ b/src/OAuth/OAuthAuthorizationServer/Views/Shared/Site.Master
@@ -0,0 +1,40 @@
+<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head runat="server">
+ <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
+ <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
+</head>
+
+<body>
+ <div class="page">
+
+ <div id="header">
+ <div id="title">
+ <h1>DotNetOpenAuth OAuth 2.0 Authorization Server</h1>
+ </div>
+
+ <div id="logindisplay">
+ <% Html.RenderPartial("LogOnUserControl"); %>
+ </div>
+
+ <div id="menucontainer">
+
+ <ul id="menu">
+ <li><%: Html.ActionLink("Home", "Index", "Home")%></li>
+ <li><%: Html.ActionLink("About", "About", "Home")%></li>
+ </ul>
+
+ </div>
+ </div>
+
+ <div id="main">
+ <asp:ContentPlaceHolder ID="MainContent" runat="server" />
+
+ <div id="footer">
+ </div>
+ </div>
+ </div>
+</body>
+</html>