forked from IdentityServer/IdentityServer3.Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e19b0a
commit edfa6af
Showing
70 changed files
with
28,721 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="WebApp.About" %> | ||
|
||
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> | ||
<h1>Secure Page, logged in as <%= User.Identity.Name %></h1> | ||
<ul> | ||
<% foreach (var claim in ((System.Security.Claims.ClaimsPrincipal)User).Claims){ %> | ||
<li><%: claim.Type + ", " + claim.Value %></li> | ||
<%} %> | ||
</ul> | ||
</asp:Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
|
||
namespace WebApp | ||
{ | ||
public partial class About : Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.Optimization; | ||
using System.Web.UI; | ||
|
||
namespace WebApp | ||
{ | ||
public class BundleConfig | ||
{ | ||
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkID=303951 | ||
public static void RegisterBundles(BundleCollection bundles) | ||
{ | ||
bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include( | ||
"~/Scripts/WebForms/WebForms.js", | ||
"~/Scripts/WebForms/WebUIValidation.js", | ||
"~/Scripts/WebForms/MenuStandards.js", | ||
"~/Scripts/WebForms/Focus.js", | ||
"~/Scripts/WebForms/GridView.js", | ||
"~/Scripts/WebForms/DetailsView.js", | ||
"~/Scripts/WebForms/TreeView.js", | ||
"~/Scripts/WebForms/WebParts.js")); | ||
|
||
// Order is very important for these files to work, they have explicit dependencies | ||
bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include( | ||
"~/Scripts/WebForms/MsAjax/MicrosoftAjax.js", | ||
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js", | ||
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js", | ||
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js")); | ||
|
||
// Use the Development version of Modernizr to develop with and learn from. Then, when you’re | ||
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need | ||
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( | ||
"~/Scripts/modernizr-*")); | ||
|
||
ScriptManager.ScriptResourceMapping.AddDefinition( | ||
"respond", | ||
new ScriptResourceDefinition | ||
{ | ||
Path = "~/Scripts/respond.min.js", | ||
DebugPath = "~/Scripts/respond.js", | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Web; | ||
using System.Web.Routing; | ||
using Microsoft.AspNet.FriendlyUrls; | ||
|
||
namespace WebApp | ||
{ | ||
public static class RouteConfig | ||
{ | ||
public static void RegisterRoutes(RouteCollection routes) | ||
{ | ||
var settings = new FriendlyUrlSettings(); | ||
settings.AutoRedirectMode = RedirectMode.Temporary; | ||
routes.EnableFriendlyUrls(settings); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<bundles version="1.0"> | ||
<styleBundle path="~/Content/css"> | ||
<include path="~/Content/bootstrap.css" /> | ||
<include path="~/Content/Site.css" /> | ||
</styleBundle> | ||
</bundles> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* Move down content because we have a fixed navbar that is 50px tall */ | ||
body { | ||
padding-top: 50px; | ||
padding-bottom: 20px; | ||
} | ||
|
||
/* Wrapping element */ | ||
/* Set some basic padding to keep content from hitting the edges */ | ||
.body-content { | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
|
||
/* Set widths on the form inputs since otherwise they're 100% wide */ | ||
input, | ||
select, | ||
textarea { | ||
max-width: 280px; | ||
} | ||
|
||
|
||
/* Responsive: Portrait tablets and up */ | ||
@media screen and (min-width: 768px) { | ||
.jumbotron { | ||
margin-top: 20px; | ||
} | ||
|
||
.body-content { | ||
padding: 0; | ||
} | ||
} |
Oops, something went wrong.