Permalink
Browse files

Add code

  • Loading branch information...
Henry Been
Henry Been committed Sep 25, 2018
1 parent e7447ec commit a99fb0eb1c4ceceb91729f80ccfc1aadd1f899b3
Showing with 36,969 additions and 0 deletions.
  1. +30 −0 src/Demo.ManagedIdentityOauth.Application/App_Start/BundleConfig.cs
  2. +13 −0 src/Demo.ManagedIdentityOauth.Application/App_Start/FilterConfig.cs
  3. +23 −0 src/Demo.ManagedIdentityOauth.Application/App_Start/RouteConfig.cs
  4. +106 −0 src/Demo.ManagedIdentityOauth.Application/ApplicationInsights.config
  5. +24 −0 src/Demo.ManagedIdentityOauth.Application/Content/Site.css
  6. +587 −0 src/Demo.ManagedIdentityOauth.Application/Content/bootstrap-theme.css
  7. +1 −0 src/Demo.ManagedIdentityOauth.Application/Content/bootstrap-theme.css.map
  8. +6 −0 src/Demo.ManagedIdentityOauth.Application/Content/bootstrap-theme.min.css
  9. +1 −0 src/Demo.ManagedIdentityOauth.Application/Content/bootstrap-theme.min.css.map
  10. +6,757 −0 src/Demo.ManagedIdentityOauth.Application/Content/bootstrap.css
  11. +1 −0 src/Demo.ManagedIdentityOauth.Application/Content/bootstrap.css.map
  12. +6 −0 src/Demo.ManagedIdentityOauth.Application/Content/bootstrap.min.css
  13. +1 −0 src/Demo.ManagedIdentityOauth.Application/Content/bootstrap.min.css.map
  14. +51 −0 src/Demo.ManagedIdentityOauth.Application/Controllers/HomeController.cs
  15. +275 −0 src/Demo.ManagedIdentityOauth.Application/Demo.ManagedIdentityOauth.Application.csproj
  16. +1 −0 src/Demo.ManagedIdentityOauth.Application/Global.asax
  17. +21 −0 src/Demo.ManagedIdentityOauth.Application/Global.asax.cs
  18. +35 −0 src/Demo.ManagedIdentityOauth.Application/Properties/AssemblyInfo.cs
  19. +2,377 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/bootstrap.js
  20. +7 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/bootstrap.min.js
  21. +2,670 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery-3.3.1.intellisense.js
  22. +10,364 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery-3.3.1.js
  23. +2 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery-3.3.1.min.js
  24. +1 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery-3.3.1.min.map
  25. +8,269 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery-3.3.1.slim.js
  26. +2 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery-3.3.1.slim.min.js
  27. +1 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery-3.3.1.slim.min.map
  28. +1,288 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery.validate-vsdoc.js
  29. +1,601 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery.validate.js
  30. +4 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery.validate.min.js
  31. +429 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery.validate.unobtrusive.js
  32. +33 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/jquery.validate.unobtrusive.min.js
  33. +1,406 −0 src/Demo.ManagedIdentityOauth.Application/Scripts/modernizr-2.8.3.js
  34. +23 −0 src/Demo.ManagedIdentityOauth.Application/Views/Home/Index.cshtml
  35. +13 −0 src/Demo.ManagedIdentityOauth.Application/Views/Shared/Error.cshtml
  36. +42 −0 src/Demo.ManagedIdentityOauth.Application/Views/Shared/_Layout.cshtml
  37. +43 −0 src/Demo.ManagedIdentityOauth.Application/Views/Web.config
  38. +3 −0 src/Demo.ManagedIdentityOauth.Application/Views/_ViewStart.cshtml
  39. +30 −0 src/Demo.ManagedIdentityOauth.Application/Web.Debug.config
  40. +31 −0 src/Demo.ManagedIdentityOauth.Application/Web.Release.config
  41. +71 −0 src/Demo.ManagedIdentityOauth.Application/Web.config
  42. BIN src/Demo.ManagedIdentityOauth.Application/favicon.ico
  43. BIN src/Demo.ManagedIdentityOauth.Application/fonts/glyphicons-halflings-regular.eot
  44. +288 −0 src/Demo.ManagedIdentityOauth.Application/fonts/glyphicons-halflings-regular.svg
  45. BIN src/Demo.ManagedIdentityOauth.Application/fonts/glyphicons-halflings-regular.ttf
  46. BIN src/Demo.ManagedIdentityOauth.Application/fonts/glyphicons-halflings-regular.woff
  47. BIN src/Demo.ManagedIdentityOauth.Application/fonts/glyphicons-halflings-regular.woff2
  48. +32 −0 src/Demo.ManagedIdentityOauth.Application/packages.config
@@ -0,0 +1,30 @@
using System.Web;
using System.Web.Optimization;
namespace Demo.KeyVaultManagedIdentity.Application
{
public class BundleConfig
{
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.validate*"));
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
}
}
}
@@ -0,0 +1,13 @@
using System.Web;
using System.Web.Mvc;
namespace Demo.KeyVaultManagedIdentity.Application
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
}
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Demo.KeyVaultManagedIdentity.Application
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}
@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
<TelemetryInitializers>
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureWebAppRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.BuildInfoConfigComponentVersionTelemetryInitializer, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.Web.WebTestTelemetryInitializer, Microsoft.AI.Web"/>
<Add Type="Microsoft.ApplicationInsights.Web.SyntheticUserAgentTelemetryInitializer, Microsoft.AI.Web">
<!-- Extended list of bots:
search|spider|crawl|Bot|Monitor|BrowserMob|BingPreview|PagePeeker|WebThumb|URL2PNG|ZooShot|GomezA|Google SketchUp|Read Later|KTXN|KHTE|Keynote|Pingdom|AlwaysOn|zao|borg|oegp|silk|Xenu|zeal|NING|htdig|lycos|slurp|teoma|voila|yahoo|Sogou|CiBra|Nutch|Java|JNLP|Daumoa|Genieo|ichiro|larbin|pompos|Scrapy|snappy|speedy|vortex|favicon|indexer|Riddler|scooter|scraper|scrubby|WhatWeb|WinHTTP|voyager|archiver|Icarus6j|mogimogi|Netvibes|altavista|charlotte|findlinks|Retreiver|TLSProber|WordPress|wsr-agent|http client|Python-urllib|AppEngine-Google|semanticdiscovery|facebookexternalhit|web/snippet|Google-HTTP-Java-Client-->
<Filters>search|spider|crawl|Bot|Monitor|AlwaysOn</Filters>
</Add>
<Add Type="Microsoft.ApplicationInsights.Web.ClientIpHeaderTelemetryInitializer, Microsoft.AI.Web"/>
<Add Type="Microsoft.ApplicationInsights.Web.OperationNameTelemetryInitializer, Microsoft.AI.Web"/>
<Add Type="Microsoft.ApplicationInsights.Web.OperationCorrelationTelemetryInitializer, Microsoft.AI.Web"/>
<Add Type="Microsoft.ApplicationInsights.Web.UserTelemetryInitializer, Microsoft.AI.Web"/>
<Add Type="Microsoft.ApplicationInsights.Web.AuthenticatedUserIdTelemetryInitializer, Microsoft.AI.Web"/>
<Add Type="Microsoft.ApplicationInsights.Web.AccountIdTelemetryInitializer, Microsoft.AI.Web"/>
<Add Type="Microsoft.ApplicationInsights.Web.SessionTelemetryInitializer, Microsoft.AI.Web"/>
</TelemetryInitializers>
<TelemetryModules>
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.DependencyTrackingTelemetryModule, Microsoft.AI.DependencyCollector">
<ExcludeComponentCorrelationHttpHeadersOnDomains>
<!--
Requests to the following hostnames will not be modified by adding correlation headers.
Add entries here to exclude additional hostnames.
NOTE: this configuration will be lost upon NuGet upgrade.
-->
<Add>core.windows.net</Add>
<Add>core.chinacloudapi.cn</Add>
<Add>core.cloudapi.de</Add>
<Add>core.usgovcloudapi.net</Add>
<Add>localhost</Add>
<Add>127.0.0.1</Add>
</ExcludeComponentCorrelationHttpHeadersOnDomains>
<IncludeDiagnosticSourceActivities>
<Add>Microsoft.Azure.EventHubs</Add>
<Add>Microsoft.Azure.ServiceBus</Add>
</IncludeDiagnosticSourceActivities>
</Add>
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector">
<!--
Use the following syntax here to collect additional performance counters:
<Counters>
<Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Handle Count" ReportAs="Process handle count" />
...
</Counters>
PerformanceCounter must be either \CategoryName(InstanceName)\CounterName or \CategoryName\CounterName
NOTE: performance counters configuration will be lost upon NuGet upgrade.
The following placeholders are supported as InstanceName:
??APP_WIN32_PROC?? - instance name of the application process for Win32 counters.
??APP_W3SVC_PROC?? - instance name of the application IIS worker process for IIS/ASP.NET counters.
??APP_CLR_PROC?? - instance name of the application CLR process for .NET counters.
-->
</Add>
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.DeveloperModeWithDebuggerAttachedTelemetryModule, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnhandledExceptionTelemetryModule, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule, Microsoft.AI.WindowsServer">
<!--</Add>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.FirstChanceExceptionStatisticsTelemetryModule, Microsoft.AI.WindowsServer">-->
</Add>
<Add Type="Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule, Microsoft.AI.Web">
<Handlers>
<!--
Add entries here to filter out additional handlers:
NOTE: handler configuration will be lost upon NuGet upgrade.
-->
<Add>Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler</Add>
<Add>System.Web.StaticFileHandler</Add>
<Add>System.Web.Handlers.AssemblyResourceLoader</Add>
<Add>System.Web.Optimization.BundleHandler</Add>
<Add>System.Web.Script.Services.ScriptHandlerFactory</Add>
<Add>System.Web.Handlers.TraceHandler</Add>
<Add>System.Web.Services.Discovery.DiscoveryRequestHandler</Add>
<Add>System.Web.HttpDebugHandler</Add>
</Handlers>
</Add>
<Add Type="Microsoft.ApplicationInsights.Web.ExceptionTrackingTelemetryModule, Microsoft.AI.Web"/>
<Add Type="Microsoft.ApplicationInsights.Web.AspNetDiagnosticTelemetryModule, Microsoft.AI.Web"/>
</TelemetryModules>
<TelemetryProcessors>
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryProcessor, Microsoft.AI.PerfCounterCollector"/>
<Add Type="Microsoft.ApplicationInsights.Extensibility.AutocollectedMetricsExtractor, Microsoft.ApplicationInsights"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
<ExcludedTypes>Event</ExcludedTypes>
</Add>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
<IncludedTypes>Event</IncludedTypes>
</Add>
</TelemetryProcessors>
<TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel"/>
<!--
Learn more about Application Insights configuration with ApplicationInsights.config here:
http://go.microsoft.com/fwlink/?LinkID=513840
Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file.
--></ApplicationInsights>
@@ -0,0 +1,24 @@
body {
padding-top: 50px;
padding-bottom: 20px;
}
/* Set padding to keep content from hitting the edges */
.body-content {
padding-left: 15px;
padding-right: 15px;
}
/* Override the default bootstrap behavior where horizontal description lists
will truncate terms that are too long to fit in the left column
*/
.dl-horizontal dt {
white-space: normal;
}
/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
max-width: 280px;
}
Oops, something went wrong.

0 comments on commit a99fb0e

Please sign in to comment.