Skip to content

Commit

Permalink
Add a master readme, and choose the right folder names
Browse files Browse the repository at this point in the history
  • Loading branch information
jmprieur committed Mar 4, 2019
1 parent e0fd843 commit a70434e
Show file tree
Hide file tree
Showing 264 changed files with 42,720 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\jmprieur\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\jmprieur\\.nuget\\packages",
"C:\\Program Files (x86)\\Xamarin\\NuGet",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "netcoreapp2.1",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "2.1.1"
},
"configProperties": {
"System.GC.Server": true
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#pragma checksum "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\About.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f5989146c20e297d05361cc87bf290b8b98e9284"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_About), @"mvc.1.0.view", @"/Views/Home/About.cshtml")]
[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@"/Views/Home/About.cshtml", typeof(AspNetCore.Views_Home_About))]
namespace AspNetCore
{
#line hidden
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
#line 1 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\_ViewImports.cshtml"
using WebApp_OpenIDConnect_DotNet;

#line default
#line hidden
#line 2 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\_ViewImports.cshtml"
using WebApp_OpenIDConnect_DotNet.Models;

#line default
#line hidden
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f5989146c20e297d05361cc87bf290b8b98e9284", @"/Views/Home/About.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2df84d8f11b77f9341e7b96d5c0195e79262a1f3", @"/Views/_ViewImports.cshtml")]
public class Views_Home_About : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
#line 1 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\About.cshtml"

ViewData["Title"] = "About";

#line default
#line hidden
BeginContext(41, 4, true);
WriteLiteral("<h2>");
EndContext();
BeginContext(46, 17, false);
#line 4 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\About.cshtml"
Write(ViewData["Title"]);

#line default
#line hidden
EndContext();
BeginContext(63, 11, true);
WriteLiteral("</h2>\r\n<h3>");
EndContext();
BeginContext(75, 19, false);
#line 5 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\About.cshtml"
Write(ViewData["Message"]);

#line default
#line hidden
EndContext();
BeginContext(94, 66, true);
WriteLiteral("</h3>\r\n\r\n<p>Use this area to provide additional information.</p>\r\n");
EndContext();
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; }
}
}
#pragma warning restore 1591
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
#pragma checksum "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Contact.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "b5c5d52739a4ab1c225fee4dce59b878a7dda730"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_Contact), @"mvc.1.0.view", @"/Views/Home/Contact.cshtml")]
[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@"/Views/Home/Contact.cshtml", typeof(AspNetCore.Views_Home_Contact))]
namespace AspNetCore
{
#line hidden
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
#line 1 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\_ViewImports.cshtml"
using WebApp_OpenIDConnect_DotNet;

#line default
#line hidden
#line 2 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\_ViewImports.cshtml"
using WebApp_OpenIDConnect_DotNet.Models;

#line default
#line hidden
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"b5c5d52739a4ab1c225fee4dce59b878a7dda730", @"/Views/Home/Contact.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2df84d8f11b77f9341e7b96d5c0195e79262a1f3", @"/Views/_ViewImports.cshtml")]
public class Views_Home_Contact : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
#line 1 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Contact.cshtml"

ViewData["Title"] = "Contact";

#line default
#line hidden
BeginContext(43, 4, true);
WriteLiteral("<h2>");
EndContext();
BeginContext(48, 17, false);
#line 4 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Contact.cshtml"
Write(ViewData["Title"]);

#line default
#line hidden
EndContext();
BeginContext(65, 11, true);
WriteLiteral("</h2>\r\n<h3>");
EndContext();
BeginContext(77, 19, false);
#line 5 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Contact.cshtml"
Write(ViewData["Message"]);

#line default
#line hidden
EndContext();
BeginContext(96, 90, true);
WriteLiteral("</h3>\r\n\r\n<table>\r\n <tr>\r\n <td>Property</td>\r\n <td>Value</td>\r\n </tr>\r\n");
EndContext();
#line 12 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Contact.cshtml"

Newtonsoft.Json.Linq.JObject me = ViewData["me"] as Newtonsoft.Json.Linq.JObject;
IEnumerable<Newtonsoft.Json.Linq.JProperty> children = me.Properties();
foreach (Newtonsoft.Json.Linq.JProperty child in children)
{

#line default
#line hidden
BeginContext(445, 38, true);
WriteLiteral(" <tr>\r\n <td>");
EndContext();
BeginContext(484, 10, false);
#line 18 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Contact.cshtml"
Write(child.Name);

#line default
#line hidden
EndContext();
BeginContext(494, 27, true);
WriteLiteral("</td>\r\n <td>");
EndContext();
BeginContext(522, 11, false);
#line 19 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Contact.cshtml"
Write(child.Value);

#line default
#line hidden
EndContext();
BeginContext(533, 43, true);
WriteLiteral("\r\n <td>\r\n </tr>\r\n");
EndContext();
#line 22 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Contact.cshtml"
}


#line default
#line hidden
BeginContext(594, 370, true);
WriteLiteral(@"</table>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title=""Phone"">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href=""mailto:[email protected]"">[email protected]</a><br />
<strong>Marketing:</strong> <a href=""mailto:[email protected]"">[email protected]</a>
</address>");
EndContext();
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; }
}
}
#pragma warning restore 1591
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#pragma checksum "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "ce040894f1ec10c9a52bdae23cb4780e779ec9bb"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_Index), @"mvc.1.0.view", @"/Views/Home/Index.cshtml")]
[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@"/Views/Home/Index.cshtml", typeof(AspNetCore.Views_Home_Index))]
namespace AspNetCore
{
#line hidden
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
#line 1 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\_ViewImports.cshtml"
using WebApp_OpenIDConnect_DotNet;

#line default
#line hidden
#line 2 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\_ViewImports.cshtml"
using WebApp_OpenIDConnect_DotNet.Models;

#line default
#line hidden
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"ce040894f1ec10c9a52bdae23cb4780e779ec9bb", @"/Views/Home/Index.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2df84d8f11b77f9341e7b96d5c0195e79262a1f3", @"/Views/_ViewImports.cshtml")]
public class Views_Home_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
#line 1 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Index.cshtml"

ViewData["Title"] = "Home Page";

#line default
#line hidden
BeginContext(45, 628, true);
WriteLiteral(@"
<h1>
Integrating Azure AD V2 into an ASP.NET Core web app and calling the Microsoft Graph API on behalf of the user
</h1>
<p>
This sample shows how to build a .NET Core 2.1 MVC Web app that uses OpenID Connect to sign in users. Users can use personal accounts (including outlook.com, live.com, and others) as well as work and school accounts from any company or organization that has integrated with Azure Active Directory. It leverages the ASP.NET Core OpenID Connect middleware.
</p>
<img src=""https://github.com/snobu/active-directory-aspnetcore-webapp-openidconnect-v2/raw/cachefix/ReadmeFiles/sign-in.png""/>");
EndContext();
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; }
}
}
#pragma warning restore 1591
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#pragma checksum "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Privacy.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "e57a9cdbfb174b0e3def22c244c908ddaaf89fa7"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_Privacy), @"mvc.1.0.view", @"/Views/Home/Privacy.cshtml")]
[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@"/Views/Home/Privacy.cshtml", typeof(AspNetCore.Views_Home_Privacy))]
namespace AspNetCore
{
#line hidden
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
#line 1 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\_ViewImports.cshtml"
using WebApp_OpenIDConnect_DotNet;

#line default
#line hidden
#line 2 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\_ViewImports.cshtml"
using WebApp_OpenIDConnect_DotNet.Models;

#line default
#line hidden
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e57a9cdbfb174b0e3def22c244c908ddaaf89fa7", @"/Views/Home/Privacy.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2df84d8f11b77f9341e7b96d5c0195e79262a1f3", @"/Views/_ViewImports.cshtml")]
public class Views_Home_Privacy : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
#line 1 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Privacy.cshtml"

ViewData["Title"] = "Privacy Policy";

#line default
#line hidden
BeginContext(50, 4, true);
WriteLiteral("<h2>");
EndContext();
BeginContext(55, 17, false);
#line 4 "C:\ghs\s\active-directory-aspnetcore-webapp-openidconnect-v2\1. WebApp signs-in users with Azure AD (OIDC)\1.3. WebApp signs-in work and school or personal accounts\Views\Home\Privacy.cshtml"
Write(ViewData["Title"]);

#line default
#line hidden
EndContext();
BeginContext(72, 69, true);
WriteLiteral("</h2>\r\n\r\n<p>Use this page to detail your site\'s privacy policy.</p>\r\n");
EndContext();
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; }
}
}
#pragma warning restore 1591
Loading

0 comments on commit a70434e

Please sign in to comment.