├── B2CNETCoreWebApp ├── wwwroot │ ├── js │ │ ├── site.min.js │ │ └── site.js │ ├── favicon.ico │ ├── lib │ │ ├── bootstrap │ │ │ └── dist │ │ │ │ ├── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ └── js │ │ │ │ └── npm.js │ │ ├── jquery-validation-unobtrusive │ │ │ ├── .bower.json │ │ │ └── LICENSE.txt │ │ ├── jquery │ │ │ └── .bower.json │ │ └── jquery-validation │ │ │ └── .bower.json │ └── css │ │ ├── site.min.css │ │ └── site.css ├── Views │ ├── _ViewStart.cshtml │ ├── Home │ │ ├── Customer.cshtml │ │ ├── Employee.cshtml │ │ ├── Partner.cshtml │ │ ├── Privacy.cshtml │ │ ├── About.cshtml │ │ └── Contact.cshtml │ ├── _ViewImports.cshtml │ └── Shared │ │ ├── Error.cshtml │ │ └── _LoginPartial.cshtml ├── appsettings.Development.json ├── Models │ └── ErrorViewModel.cs ├── B2CNETCoreWebApp.csproj ├── appsettings.json ├── Program.cs └── Properties │ └── launchSettings.json ├── .vs ├── ProjectSettings.json ├── restore.dg └── AADGuide-CodeSamples │ └── v15 │ └── sqlite3 │ └── storage.ide ├── ADFSTodoSPA ├── TodoSPA │ ├── App │ │ ├── Views │ │ │ ├── Home.html │ │ │ └── UserData.html │ │ └── Scripts │ │ │ ├── indexCtrl.js │ │ │ ├── userDataCtrl.js │ │ │ ├── homeCtrl.js │ │ │ ├── todoListSvc.js │ │ │ └── app.js │ ├── Global.asax │ ├── DAL │ │ ├── TodoListServiceInitializer.cs │ │ └── TodoListServiceContext.cs │ ├── Models │ │ └── AppModels.cs │ ├── Startup.cs │ ├── Global.asax.cs │ └── App_Start │ │ └── WebApiConfig.cs ├── AppCreationScripts │ └── Config.ps1 ├── CONTRIBUTING.md └── LICENSE ├── ADFSWebAPIServer ├── Views │ ├── _ViewStart.cshtml │ └── Shared │ │ └── Error.cshtml ├── favicon.ico ├── Global.asax ├── Scripts │ └── _references.js ├── Areas │ └── HelpPage │ │ ├── Views │ │ ├── Help │ │ │ ├── DisplayTemplates │ │ │ │ ├── ImageSample.cshtml │ │ │ │ ├── TextSample.cshtml │ │ │ │ ├── SimpleTypeModelDescription.cshtml │ │ │ │ ├── ComplexTypeModelDescription.cshtml │ │ │ │ ├── CollectionModelDescription.cshtml │ │ │ │ ├── InvalidSample.cshtml │ │ │ │ ├── KeyValuePairModelDescription.cshtml │ │ │ │ ├── DictionaryModelDescription.cshtml │ │ │ │ ├── EnumTypeModelDescription.cshtml │ │ │ │ ├── Samples.cshtml │ │ │ │ └── ModelDescriptionLink.cshtml │ │ │ ├── ResourceModel.cshtml │ │ │ └── Api.cshtml │ │ ├── _ViewStart.cshtml │ │ └── Shared │ │ │ └── _Layout.cshtml │ │ ├── ModelDescriptions │ │ ├── SimpleTypeModelDescription.cs │ │ ├── DictionaryModelDescription.cs │ │ ├── CollectionModelDescription.cs │ │ ├── ParameterAnnotation.cs │ │ ├── EnumValueDescription.cs │ │ ├── KeyValuePairModelDescription.cs │ │ ├── IModelDocumentationProvider.cs │ │ ├── ModelDescription.cs │ │ ├── ComplexTypeModelDescription.cs │ │ ├── EnumTypeModelDescription.cs │ │ ├── ParameterDescription.cs │ │ └── ModelNameAttribute.cs │ │ ├── SampleGeneration │ │ ├── SampleDirection.cs │ │ └── TextSample.cs │ │ └── HelpPageAreaRegistration.cs ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── Startup.cs ├── App_Start │ ├── FilterConfig.cs │ ├── RouteConfig.cs │ └── WebApiConfig.cs ├── Controllers │ ├── HomeController.cs │ └── ADFSController.cs ├── Content │ └── Site.css └── Global.asax.cs ├── B2CVideoPortal ├── Views │ ├── _ViewStart.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ └── _LoginPartial.cshtml │ └── Home │ │ └── Claims.cshtml ├── favicon.ico ├── Global.asax ├── Scripts │ └── _references.js ├── components │ ├── Persona │ │ ├── Persona.Person.jpg │ │ ├── Persona.Person2.png │ │ ├── Persona.Tiny.html │ │ ├── Persona.Square.Tiny.html │ │ ├── Persona.ExtraSmall.html │ │ ├── Persona.Square.ExtraSmall.html │ │ ├── Persona.html │ │ ├── Persona.Presence.Dnd.html │ │ ├── Persona.Small.html │ │ ├── Persona.Square.html │ │ ├── Persona.Presence.Away.html │ │ ├── Persona.Presence.Busy.html │ │ ├── Persona.Presence.Blocked.html │ │ ├── Persona.Presence.Offline.html │ │ ├── Persona.Presence.Available.html │ │ ├── Persona.Presence.Square.Away.html │ │ ├── Persona.Presence.Square.Busy.html │ │ ├── Persona.Presence.Square.Dnd.html │ │ ├── Persona.Square.Small.html │ │ ├── Persona.Presence.Square.Blocked.html │ │ ├── Persona.Presence.Square.Offline.html │ │ ├── Persona.Presence.Square.Available.html │ │ ├── Persona.Large.html │ │ ├── Persona.Square.Large.html │ │ ├── Persona.ExtraLarge.html │ │ └── Persona.Square.ExtraLarge.html │ ├── PeoplePicker │ │ ├── PeoplePicker.Searching.png │ │ └── PeoplePicker.json │ ├── Spinner │ │ ├── Spinner.json │ │ ├── Spinner.html │ │ └── Spinner.less │ ├── DatePicker │ │ ├── DatePicker.html │ │ └── DatePicker.json │ ├── Overlay │ │ ├── Overlay.html │ │ ├── Overlay.Dark.html │ │ ├── Overlay.None.html │ │ ├── Overlay.json │ │ └── Overlay.less │ ├── Label │ │ ├── Label.html │ │ ├── Label.Disabled.html │ │ ├── Label.Required.html │ │ ├── Label.json │ │ └── Label.less │ ├── ProgressIndicator │ │ ├── ProgressIndicator.json │ │ └── ProgressIndicator.html │ ├── Breadcrumb │ │ ├── Breadcrumb.json │ │ └── Breadcrumb.html │ ├── Table │ │ └── Table.json │ ├── Link │ │ ├── Link.html │ │ ├── Link.Hero.html │ │ ├── Link.json │ │ └── Link.less │ ├── NavBar │ │ └── NavBar.json │ ├── TextField │ │ ├── TextField.Underlined.html │ │ ├── TextField.Multiline.html │ │ ├── TextField.html │ │ └── TextField.Placeholder.html │ ├── SearchBox │ │ ├── SearchBox.json │ │ └── SearchBox.html │ ├── ChoiceField │ │ ├── ChoiceField.html │ │ ├── ChoiceField.Selected.html │ │ ├── ChoiceField.Checkbox.html │ │ ├── ChoiceField.Disabled.html │ │ ├── ChoiceField.Checkbox.Selected.html │ │ └── ChoiceField.Checkbox.Disabled.html │ ├── Dropdown │ │ ├── Dropdown.json │ │ ├── Dropdown.html │ │ └── Dropdown.Disabled.html │ ├── Button │ │ ├── Button.html │ │ ├── Button.Hero.html │ │ ├── Button.Command.html │ │ ├── Button.Compound.html │ │ └── Button.Primary.html │ ├── ListItem │ │ ├── ListItem.Document.html │ │ ├── Jquery.ListItem.js │ │ ├── ListItem.html │ │ ├── ListItem.Selectable.html │ │ ├── ListItem.json │ │ ├── ListItem.Unread.html │ │ ├── ListItem.Unseen.html │ │ ├── ListItem.Selected.html │ │ └── ListItem.Image.html │ ├── List │ │ ├── List.json │ │ └── List.less │ ├── Pivot │ │ ├── Pivot.html │ │ ├── Pivot.Tabs.html │ │ ├── Pivot.Large.html │ │ ├── Pivot.Tabs.Large.html │ │ ├── Pivot.json │ │ └── jquery.Pivot.js │ ├── Toggle │ │ ├── Toggle.html │ │ ├── Toggle.TextLeft.html │ │ └── Toggle.json │ ├── OrgChart │ │ ├── OrgChart.json │ │ └── OrgChart.less │ ├── PersonaCard │ │ └── PersonaCard.json │ ├── ContextualMenu │ │ ├── ContextualMenu.html │ │ └── ContextualMenu.json │ ├── Callout │ │ ├── Callout.Peek.html │ │ ├── Callout.html │ │ └── Callout.Close.html │ ├── CommandBar │ │ └── CommandBar.json │ └── Panel │ │ └── Panel.json ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── App_Start │ ├── FilterConfig.cs │ └── RouteConfig.cs ├── Startup.cs ├── Content │ └── Site.css ├── Global.asax.cs ├── Controllers │ └── HomeController.cs ├── less │ ├── _Fabric.Utilities.less │ ├── _Fabric.Icons.Font.less │ ├── _Fabric.ZIndex.Variables.less │ └── _Fabric.Grid.less └── PolicyAuthHelpers │ └── PolicyAuthorize.cs ├── ClaimsWebApp ├── Views │ ├── _ViewStart.cshtml │ ├── Account │ │ └── SignOutCallback.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ └── _LoginPartial.cshtml │ └── UserProfile │ │ ├── Relogin.cshtml │ │ └── Index.cshtml ├── favicon.ico ├── Global.asax ├── Scripts │ └── _references.js ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── Startup.cs ├── Service References │ └── AzureAD │ │ └── ConnectedService.json ├── App_Start │ ├── FilterConfig.cs │ └── RouteConfig.cs ├── Content │ ├── sass │ │ ├── _Fabric.Common.scss │ │ ├── Fabric.Utilities.Output.scss │ │ ├── Fabric.Grid.Output.scss │ │ ├── _Fabric.Grid.scss │ │ ├── _Fabric.Utilities.scss │ │ ├── _Fabric.ZIndex.Variables.scss │ │ └── Fabric.Icons.Font.Output.scss │ └── Site.css ├── Global.asax.cs └── Models │ └── ApplicationDbContext.cs ├── WebAPIServerSingleTenant ├── Views │ ├── _ViewStart.cshtml │ └── Shared │ │ └── Error.cshtml ├── favicon.ico ├── Global.asax ├── Scripts │ └── _references.js ├── Areas │ └── HelpPage │ │ ├── Views │ │ ├── Help │ │ │ ├── DisplayTemplates │ │ │ │ ├── ImageSample.cshtml │ │ │ │ ├── TextSample.cshtml │ │ │ │ ├── SimpleTypeModelDescription.cshtml │ │ │ │ ├── ComplexTypeModelDescription.cshtml │ │ │ │ ├── CollectionModelDescription.cshtml │ │ │ │ ├── InvalidSample.cshtml │ │ │ │ ├── DictionaryModelDescription.cshtml │ │ │ │ ├── KeyValuePairModelDescription.cshtml │ │ │ │ ├── EnumTypeModelDescription.cshtml │ │ │ │ ├── Samples.cshtml │ │ │ │ └── ModelDescriptionLink.cshtml │ │ │ ├── ResourceModel.cshtml │ │ │ └── Api.cshtml │ │ ├── _ViewStart.cshtml │ │ └── Shared │ │ │ └── _Layout.cshtml │ │ ├── ModelDescriptions │ │ ├── SimpleTypeModelDescription.cs │ │ ├── DictionaryModelDescription.cs │ │ ├── CollectionModelDescription.cs │ │ ├── ParameterAnnotation.cs │ │ ├── EnumValueDescription.cs │ │ ├── KeyValuePairModelDescription.cs │ │ ├── IModelDocumentationProvider.cs │ │ ├── ModelDescription.cs │ │ ├── ComplexTypeModelDescription.cs │ │ ├── EnumTypeModelDescription.cs │ │ ├── ParameterDescription.cs │ │ └── ModelNameAttribute.cs │ │ ├── SampleGeneration │ │ ├── SampleDirection.cs │ │ └── TextSample.cs │ │ └── HelpPageAreaRegistration.cs ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── Startup.cs ├── Controllers │ ├── HomeController.cs │ └── AADController.cs ├── App_Start │ ├── FilterConfig.cs │ ├── RouteConfig.cs │ └── WebApiConfig.cs ├── Content │ └── Site.css ├── Models │ └── ApplicationDbContext.cs └── Global.asax.cs ├── HelloAADB2C ├── Assets │ ├── StoreLogo.png │ ├── SplashScreen.scale-200.png │ ├── LockScreenLogo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Wide310x150Logo.scale-200.png │ ├── Square150x150Logo.scale-200.png │ └── Square44x44Logo.targetsize-24_altform-unplated.png ├── App.xaml ├── project.json └── MainPage.xaml ├── ADFSWebAPIClient ├── Assets │ ├── StoreLogo.png │ ├── SplashScreen.scale-200.png │ ├── LockScreenLogo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Wide310x150Logo.scale-200.png │ ├── Square150x150Logo.scale-200.png │ └── Square44x44Logo.targetsize-24_altform-unplated.png ├── App.xaml ├── project.json └── MainPage.xaml ├── CoreWebAPIClient ├── Assets │ ├── StoreLogo.png │ ├── SplashScreen.scale-200.png │ ├── LockScreenLogo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Wide310x150Logo.scale-200.png │ ├── Square150x150Logo.scale-200.png │ └── Square44x44Logo.targetsize-24_altform-unplated.png ├── App.xaml ├── project.json └── MainPage.xaml ├── HelloAzureAD ├── Assets │ ├── Logo.scale-100.png │ ├── SmallLogo.scale-100.png │ ├── StoreLogo.scale-100.png │ ├── WideLogo.scale-100.png │ └── SplashScreen.scale-100.png ├── App.xaml ├── project.json └── MainPage.xaml ├── WebAPIClientSingleTenant ├── Assets │ ├── StoreLogo.png │ ├── SplashScreen.scale-200.png │ ├── LockScreenLogo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Wide310x150Logo.scale-200.png │ ├── Square150x150Logo.scale-200.png │ └── Square44x44Logo.targetsize-24_altform-unplated.png ├── App.xaml ├── project.json └── MainPage.xaml ├── CoreWebAPISignedJWTs ├── appsettings.json ├── appsettings.Development.json ├── CoreWebAPISignedJWTs.csproj ├── Program.cs └── Properties │ └── launchSettings.json ├── AboutMePasswordGrant ├── packages.config ├── App.config ├── Properties │ └── Settings.settings └── Program.cs ├── JwtCracker ├── Properties │ └── Settings.settings ├── packages.config ├── Program.cs └── App.config ├── GraphTreeView ├── Properties │ └── Settings.settings ├── Program.cs ├── packages.config ├── App.config └── Constants.cs └── CoreWebAPIServer ├── Controllers └── AADController.cs ├── appsettings.json ├── Program.cs ├── web.config └── Properties └── launchSettings.json /B2CNETCoreWebApp/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.vs/ProjectSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "CurrentProjectSetting": null 3 | } -------------------------------------------------------------------------------- /B2CNETCoreWebApp/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/App/Views/Home.html: -------------------------------------------------------------------------------- 1 |
2 | home sweet home 3 |
4 | -------------------------------------------------------------------------------- /.vs/restore.dg: -------------------------------------------------------------------------------- 1 | #:C:\Code\AADGuide-CodeSamples\CoreWebAPIServer\CoreWebAPIServer.xproj 2 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /B2CVideoPortal/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /ClaimsWebApp/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /ClaimsWebApp/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ClaimsWebApp/favicon.ico -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /B2CVideoPortal/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CVideoPortal/favicon.ico -------------------------------------------------------------------------------- /ADFSWebAPIServer/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIServer/favicon.ico -------------------------------------------------------------------------------- /ClaimsWebApp/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="ClaimsWebApp.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /B2CVideoPortal/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="B2CVideoPortal.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /HelloAADB2C/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAADB2C/Assets/StoreLogo.png -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="ADFSTodoSPA.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CNETCoreWebApp/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ClaimsWebApp/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ClaimsWebApp/Scripts/_references.js -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIServerSingleTenant/favicon.ico -------------------------------------------------------------------------------- /ADFSWebAPIClient/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIClient/Assets/StoreLogo.png -------------------------------------------------------------------------------- /ADFSWebAPIServer/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="ADFSWebAPIServer.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIServer/Scripts/_references.js -------------------------------------------------------------------------------- /B2CVideoPortal/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CVideoPortal/Scripts/_references.js -------------------------------------------------------------------------------- /CoreWebAPIClient/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/CoreWebAPIClient/Assets/StoreLogo.png -------------------------------------------------------------------------------- /HelloAzureAD/Assets/Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAzureAD/Assets/Logo.scale-100.png -------------------------------------------------------------------------------- /HelloAzureAD/Assets/SmallLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAzureAD/Assets/SmallLogo.scale-100.png -------------------------------------------------------------------------------- /HelloAzureAD/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAzureAD/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /HelloAzureAD/Assets/WideLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAzureAD/Assets/WideLogo.scale-100.png -------------------------------------------------------------------------------- /B2CNETCoreWebApp/Views/Home/Customer.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Customer"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

-------------------------------------------------------------------------------- /B2CNETCoreWebApp/Views/Home/Employee.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Employee"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

-------------------------------------------------------------------------------- /B2CNETCoreWebApp/Views/Home/Partner.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Partner"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

-------------------------------------------------------------------------------- /HelloAADB2C/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAADB2C/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /HelloAzureAD/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAzureAD/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /WebAPIClientSingleTenant/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIClientSingleTenant/Assets/StoreLogo.png -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="WebAPIServerSingleTenant.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /.vs/AADGuide-CodeSamples/v15/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/.vs/AADGuide-CodeSamples/v15/sqlite3/storage.ide -------------------------------------------------------------------------------- /B2CNETCoreWebApp/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using B2CNETCoreWebApp 2 | @using B2CNETCoreWebApp.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /HelloAADB2C/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAADB2C/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /HelloAADB2C/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAADB2C/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /HelloAADB2C/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAADB2C/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIServerSingleTenant/Scripts/_references.js -------------------------------------------------------------------------------- /ADFSWebAPIClient/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIClient/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /ClaimsWebApp/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ClaimsWebApp/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /ClaimsWebApp/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ClaimsWebApp/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /CoreWebAPIClient/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/CoreWebAPIClient/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /CoreWebAPISignedJWTs/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Warning" 5 | } 6 | }, 7 | "AllowedHosts": "*" 8 | } 9 | -------------------------------------------------------------------------------- /HelloAADB2C/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAADB2C/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /ADFSWebAPIClient/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIClient/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /ADFSWebAPIClient/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIClient/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /ADFSWebAPIClient/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIClient/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml: -------------------------------------------------------------------------------- 1 | @using ADFSWebAPIServer.Areas.HelpPage 2 | @model ImageSample 3 | 4 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Person.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CVideoPortal/components/Persona/Persona.Person.jpg -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Person2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CVideoPortal/components/Persona/Persona.Person2.png -------------------------------------------------------------------------------- /B2CVideoPortal/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CVideoPortal/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /B2CVideoPortal/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CVideoPortal/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /B2CVideoPortal/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CVideoPortal/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /ClaimsWebApp/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ClaimsWebApp/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /ClaimsWebApp/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ClaimsWebApp/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /CoreWebAPIClient/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/CoreWebAPIClient/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /CoreWebAPIClient/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/CoreWebAPIClient/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /CoreWebAPIClient/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/CoreWebAPIClient/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /ADFSWebAPIClient/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIClient/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /ADFSWebAPIServer/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIServer/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /ADFSWebAPIServer/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIServer/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /ADFSWebAPIServer/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIServer/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /B2CVideoPortal/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CVideoPortal/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /CoreWebAPIClient/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/CoreWebAPIClient/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /ADFSWebAPIServer/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIServer/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /WebAPIClientSingleTenant/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIClientSingleTenant/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /AboutMePasswordGrant/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /WebAPIClientSingleTenant/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIClientSingleTenant/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /WebAPIClientSingleTenant/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIClientSingleTenant/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /WebAPIClientSingleTenant/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIClientSingleTenant/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /ClaimsWebApp/Views/Account/SignOutCallback.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Sign Out"; 3 | } 4 |

@ViewBag.Title.

5 |

You have successfully signed out.

6 | -------------------------------------------------------------------------------- /WebAPIClientSingleTenant/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIClientSingleTenant/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIServerSingleTenant.Areas.HelpPage 2 | @model ImageSample 3 | 4 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIServerSingleTenant/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIServerSingleTenant/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIServerSingleTenant/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml: -------------------------------------------------------------------------------- 1 | @using ADFSWebAPIServer.Areas.HelpPage 2 | @model TextSample 3 | 4 |
5 | @Model.Text
6 | 
-------------------------------------------------------------------------------- /B2CVideoPortal/components/PeoplePicker/PeoplePicker.Searching.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CVideoPortal/components/PeoplePicker/PeoplePicker.Searching.png -------------------------------------------------------------------------------- /B2CVideoPortal/components/Spinner/Spinner.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Spinner", 3 | "notes": "An animating activity indicator.", 4 | "template": "Spinner.html", 5 | "class": "ms-Spinner" 6 | } 7 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIServerSingleTenant/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/App/Scripts/indexCtrl.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | angular.module('todoApp') 3 | .controller('indexCtrl', ['$scope', 'adalAuthenticationService', function ($scope, adalService) { 4 | 5 | }]); -------------------------------------------------------------------------------- /B2CNETCoreWebApp/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |

@ViewData["Title"]

5 | 6 |

Use this page to detail your site's privacy policy.

7 | -------------------------------------------------------------------------------- /HelloAADB2C/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/HelloAADB2C/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /ADFSWebAPIClient/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/ADFSWebAPIClient/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | @model SimpleTypeModelDescription 3 | @Model.Documentation -------------------------------------------------------------------------------- /CoreWebAPIClient/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/CoreWebAPIClient/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIServerSingleTenant.Areas.HelpPage 2 | @model TextSample 3 | 4 |
5 | @Model.Text
6 | 
-------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/App/Scripts/userDataCtrl.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | angular.module('todoApp') 3 | .controller('userDataCtrl', ['$scope', 'adalAuthenticationService', function ($scope, adalService) { 4 | 5 | 6 | }]); -------------------------------------------------------------------------------- /B2CNETCoreWebApp/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "About"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |

Use this area to provide additional information.

8 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages 3 | Layout = "~/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /B2CNETCoreWebApp/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/DatePicker/DatePicker.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | @model SimpleTypeModelDescription 3 | @Model.Documentation -------------------------------------------------------------------------------- /AboutMePasswordGrant/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CNETCoreWebApp/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CNETCoreWebApp/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CNETCoreWebApp/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/B2CNETCoreWebApp/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /CoreWebAPISignedJWTs/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /WebAPIClientSingleTenant/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahelland/AADGuide-CodeSamples/HEAD/WebAPIClientSingleTenant/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/DAL/TodoListServiceInitializer.cs: -------------------------------------------------------------------------------- 1 | namespace ADFSTodoSPA.DAL 2 | { 3 | public class TodoListServiceInitializer : System.Data.Entity.DropCreateDatabaseIfModelChanges 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class SimpleTypeModelDescription : ModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Overlay/Overlay.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Spinner/Spinner.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | @model ComplexTypeModelDescription 3 | @Html.DisplayFor(m => m.Properties, "Parameters") -------------------------------------------------------------------------------- /B2CVideoPortal/components/Label/Label.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class DictionaryModelDescription : KeyValuePairModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class SimpleTypeModelDescription : ModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages. 3 | Layout = "~/Areas/HelpPage/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Label/Label.Disabled.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Label/Label.Required.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Overlay/Overlay.Dark.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Overlay/Overlay.None.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ProgressIndicator/ProgressIndicator.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "OperationMonitor", 3 | "notes": "A component for outputting determinate progress", 4 | "template": "ProgressIndicator.html", 5 | "class": "ms-ProgressIndicator" 6 | } 7 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | @model ComplexTypeModelDescription 3 | @Html.DisplayFor(m => m.Properties, "Parameters") -------------------------------------------------------------------------------- /ClaimsWebApp/Startup.cs: -------------------------------------------------------------------------------- 1 | using Owin; 2 | 3 | namespace ClaimsWebApp 4 | { 5 | public partial class Startup 6 | { 7 | public void Configuration(IAppBuilder app) 8 | { 9 | ConfigureAuth(app); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class DictionaryModelDescription : KeyValuePairModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Breadcrumb/Breadcrumb.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Breadcrumb", 3 | "notes": "Shows the user's current location in a hierarchy and provides a means of navigating upward.", 4 | "template": "Breadcrumb.html", 5 | "class": "ms-Breadcrumb" 6 | } 7 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Table/Table.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Table", 3 | "notes": "", 4 | "template": "Table.html", 5 | "class": "ms-Table", 6 | "branches": [ 7 | { 8 | "name": "Default", 9 | "default": true 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Startup.cs: -------------------------------------------------------------------------------- 1 | using Owin; 2 | 3 | namespace ADFSWebAPIServer 4 | { 5 | public partial class Startup 6 | { 7 | public void Configuration(IAppBuilder app) 8 | { 9 | ConfigureAuth(app); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification 2 | // for details on configuring this project to bundle and minify static web assets. 3 | 4 | // Write your JavaScript code. 5 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Link/Link.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Link to a webpage 5 |
6 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/NavBar/NavBar.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "NavBar", 3 | "notes": "", 4 | "template": "NavBar.html", 5 | "class": "ms-NavBar", 6 | "dependencies": [ 7 | "List", 8 | "ListItem", 9 | "ContextualMenu", 10 | "Overlay" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Startup.cs: -------------------------------------------------------------------------------- 1 | using Owin; 2 | 3 | namespace WebAPIServerSingleTenant 4 | { 5 | public partial class Startup 6 | { 7 | public void Configuration(IAppBuilder app) 8 | { 9 | ConfigureAuth(app); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Link/Link.Hero.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Link to a webpage 5 |
-------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/Models/AppModels.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace ADFSTodoSPA.Controllers 3 | { 4 | public class Todo 5 | { 6 | public int ID { get; set; } 7 | public string Description { get; set; } 8 | public string Owner { get; set; } 9 | } 10 | 11 | 12 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class CollectionModelDescription : ModelDescription 4 | { 5 | public ModelDescription ElementDescription { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /B2CNETCoreWebApp/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace B2CNETCoreWebApp.Models 4 | { 5 | public class ErrorViewModel 6 | { 7 | public string RequestId { get; set; } 8 | 9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 10 | } 11 | } -------------------------------------------------------------------------------- /HelloAADB2C/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /HelloAzureAD/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /JwtCracker/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GraphTreeView/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | @model CollectionModelDescription 3 | @if (Model.ElementDescription is ComplexTypeModelDescription) 4 | { 5 | @Html.DisplayFor(m => m.ElementDescription) 6 | } -------------------------------------------------------------------------------- /AboutMePasswordGrant/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ADFSWebAPIClient/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /CoreWebAPIClient/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class CollectionModelDescription : ModelDescription 4 | { 5 | public ModelDescription ElementDescription { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /ClaimsWebApp/Service References/AzureAD/ConnectedService.json: -------------------------------------------------------------------------------- 1 | { 2 | "ProviderId": "Microsoft.Azure.AD", 3 | "Version": "1.0", 4 | "GettingStartedDocument": { 5 | "Uri": "http://go.microsoft.com/fwlink/?LinkId=513809" 6 | }, 7 | "ExtendedData": { 8 | "AuthConfiguration": "AspNet_MVC" 9 | } 10 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | @model CollectionModelDescription 3 | @if (Model.ElementDescription is ComplexTypeModelDescription) 4 | { 5 | @Html.DisplayFor(m => m.ElementDescription) 6 | } -------------------------------------------------------------------------------- /WebAPIClientSingleTenant/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ClaimsWebApp/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace ClaimsWebApp 4 | { 5 | public class FilterConfig 6 | { 7 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 8 | { 9 | filters.Add(new HandleErrorAttribute()); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace ADFSWebAPIServer 4 | { 5 | public class FilterConfig 6 | { 7 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 8 | { 9 | filters.Add(new HandleErrorAttribute()); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/SampleGeneration/SampleDirection.cs: -------------------------------------------------------------------------------- 1 | namespace ADFSWebAPIServer.Areas.HelpPage 2 | { 3 | /// 4 | /// Indicates whether the sample is used for request or response 5 | /// 6 | public enum SampleDirection 7 | { 8 | Request = 0, 9 | Response 10 | } 11 | } -------------------------------------------------------------------------------- /B2CVideoPortal/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace B2CVideoPortal 4 | { 5 | public class FilterConfig 6 | { 7 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 8 | { 9 | filters.Add(new HandleErrorAttribute()); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/ParameterAnnotation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 4 | { 5 | public class ParameterAnnotation 6 | { 7 | public Attribute AnnotationAttribute { get; set; } 8 | 9 | public string Documentation { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace ADFSWebAPIServer.Controllers 4 | { 5 | public class HomeController : Controller 6 | { 7 | public ActionResult Index() 8 | { 9 | ViewBag.Title = "Home Page"; 10 | 11 | return View(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /B2CVideoPortal/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Error 6 | 7 | 8 |
9 |

Error.

10 |

An error occurred while processing your request.

11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/TextField/TextField.Underlined.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /ClaimsWebApp/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Error 6 | 7 | 8 |
9 |

Error.

10 |

An error occurred while processing your request.

11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/SampleGeneration/SampleDirection.cs: -------------------------------------------------------------------------------- 1 | namespace WebAPIServerSingleTenant.Areas.HelpPage 2 | { 3 | /// 4 | /// Indicates whether the sample is used for request or response 5 | /// 6 | public enum SampleDirection 7 | { 8 | Request = 0, 9 | Response 10 | } 11 | } -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/Startup.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Owin; 2 | using Owin; 3 | 4 | [assembly: OwinStartup(typeof(ADFSTodoSPA.Startup))] 5 | 6 | namespace ADFSTodoSPA 7 | { 8 | public partial class Startup 9 | { 10 | public void Configuration(IAppBuilder app) 11 | { 12 | ConfigureAuth(app); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs: -------------------------------------------------------------------------------- 1 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class EnumValueDescription 4 | { 5 | public string Documentation { get; set; } 6 | 7 | public string Name { get; set; } 8 | 9 | public string Value { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | @ViewBag.Title 7 | @RenderSection("scripts", required: false) 8 | 9 | 10 | @RenderBody() 11 | 12 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Error 6 | 7 | 8 |
9 |

Error.

10 |

An error occurred while processing your request.

11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /B2CVideoPortal/Startup.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Owin; 2 | using Owin; 3 | 4 | [assembly: OwinStartup(typeof(B2CVideoPortal.Startup))] 5 | 6 | namespace B2CVideoPortal 7 | { 8 | public partial class Startup 9 | { 10 | public void Configuration(IAppBuilder app) 11 | { 12 | ConfigureAuth(app); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/ParameterAnnotation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 4 | { 5 | public class ParameterAnnotation 6 | { 7 | public Attribute AnnotationAttribute { get; set; } 8 | 9 | public string Documentation { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml: -------------------------------------------------------------------------------- 1 | @using ADFSWebAPIServer.Areas.HelpPage 2 | @model InvalidSample 3 | 4 | @if (HttpContext.Current.IsDebuggingEnabled) 5 | { 6 |
7 |

@Model.ErrorMessage

8 |
9 | } 10 | else 11 | { 12 |

Sample not available.

13 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | @ViewBag.Title 7 | @RenderSection("scripts", required: false) 8 | 9 | 10 | @RenderBody() 11 | 12 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace WebAPIServerSingleTenant.Controllers 4 | { 5 | public class HomeController : Controller 6 | { 7 | public ActionResult Index() 8 | { 9 | ViewBag.Title = "Home Page"; 10 | 11 | return View(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class KeyValuePairModelDescription : ModelDescription 4 | { 5 | public ModelDescription KeyModelDescription { get; set; } 6 | 7 | public ModelDescription ValueModelDescription { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/TextField/TextField.Multiline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs: -------------------------------------------------------------------------------- 1 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class EnumValueDescription 4 | { 5 | public string Documentation { get; set; } 6 | 7 | public string Name { get; set; } 8 | 9 | public string Value { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | 4 | namespace WebAPIServerSingleTenant 5 | { 6 | public class FilterConfig 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 5 | { 6 | public interface IModelDocumentationProvider 7 | { 8 | string GetDocumentation(MemberInfo member); 9 | 10 | string GetDocumentation(Type type); 11 | } 12 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIServerSingleTenant.Areas.HelpPage 2 | @model InvalidSample 3 | 4 | @if (HttpContext.Current.IsDebuggingEnabled) 5 | { 6 |
7 |

@Model.ErrorMessage

8 |
9 | } 10 | else 11 | { 12 |

Sample not available.

13 | } -------------------------------------------------------------------------------- /ClaimsWebApp/Views/UserProfile/Relogin.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.Azure.ActiveDirectory.GraphClient 2 | 3 | @{ 4 | ViewBag.Title = "User Profile"; 5 | } 6 |

@ViewBag.Title.

7 | 8 |

9 | The token for accessing the Graph API has expired. 10 | Click @Html.ActionLink("here", "RefreshSession", "UserProfile", null, null) to sign-in and get a new access token. 11 |

12 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class KeyValuePairModelDescription : ModelDescription 4 | { 5 | public ModelDescription KeyModelDescription { get; set; } 6 | 7 | public ModelDescription ValueModelDescription { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Link/Link.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Link", 3 | "notes": "", 4 | "template": "Link.html", 5 | "class": "ms-Link", 6 | "wrapBranches": true, 7 | "fileOrder": [ 8 | "Link.html", 9 | "Link.Hero.html" 10 | ], 11 | "branches": [ 12 | { 13 | "name": "Hero", 14 | "class": "ms-Link--hero", 15 | "default": true 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 5 | { 6 | public interface IModelDocumentationProvider 7 | { 8 | string GetDocumentation(MemberInfo member); 9 | 10 | string GetDocumentation(Type type); 11 | } 12 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/TextField/TextField.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | This should be your first and last name. 7 |
8 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = null; 3 | } 4 | 5 | 6 | 7 | 8 | 9 | Error 10 | 11 | 12 |
13 |

Error.

14 |

An error occurred while processing your request.

15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Set width on the form input elements since they're 100% wide by default */ 13 | input, 14 | select, 15 | textarea { 16 | max-width: 280px; 17 | } 18 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Tiny.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |
Alton Lafferty
7 |
8 |
9 | 10 | -------------------------------------------------------------------------------- /HelloAADB2C/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.Identity.Client": "1.1.0-preview", 4 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.3.3" 5 | }, 6 | "frameworks": { 7 | "uap10.0": {} 8 | }, 9 | "runtimes": { 10 | "win10-arm": {}, 11 | "win10-arm-aot": {}, 12 | "win10-x86": {}, 13 | "win10-x86-aot": {}, 14 | "win10-x64": {}, 15 | "win10-x64-aot": {} 16 | } 17 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Set width on the form input elements since they're 100% wide by default */ 13 | input, 14 | select, 15 | textarea { 16 | max-width: 280px; 17 | } 18 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Breadcrumb/Breadcrumb.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Working files 5 | OneDrive @ Contoso 6 | Working files 7 |
-------------------------------------------------------------------------------- /B2CVideoPortal/components/SearchBox/SearchBox.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SearchBox", 3 | "notes": "", 4 | "template": "SearchBox.html", 5 | "class": "ms-SearchBox", 6 | "dependencies": [ 7 | "Label" 8 | ], 9 | "branches": [ 10 | { 11 | "name": "Enabled", 12 | "default": true 13 | }, 14 | { 15 | "name": "Disabled", 16 | "class": "is-disabled" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ChoiceField/ChoiceField.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /CoreWebAPIClient/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.Identity.Client": "1.0.304142221-alpha", 4 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0" 5 | }, 6 | "frameworks": { 7 | "uap10.0": {} 8 | }, 9 | "runtimes": { 10 | "win10-arm": {}, 11 | "win10-arm-aot": {}, 12 | "win10-x86": {}, 13 | "win10-x86-aot": {}, 14 | "win10-x64": {}, 15 | "win10-x64-aot": {} 16 | } 17 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Square.Tiny.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |
Alton Lafferty
7 |
8 |
9 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ChoiceField/ChoiceField.Selected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Dropdown/Dropdown.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Dropdown", 3 | "notes": "", 4 | "template": "Dropdown.html", 5 | "class": "ms-Dropdown", 6 | "fileOrder": [ 7 | "Dropdown.html", 8 | "Dropdown.Disabled.html" 9 | ], 10 | "branches": [ 11 | { 12 | "name": "Enabled", 13 | "default": true 14 | }, 15 | { 16 | "name": "Disabled", 17 | "class": "is-disabled" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /ADFSWebAPIClient/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.IdentityModel.Clients.ActiveDirectory": "3.5.207081303-alpha", 4 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0" 5 | }, 6 | "frameworks": { 7 | "uap10.0": {} 8 | }, 9 | "runtimes": { 10 | "win10-arm": {}, 11 | "win10-arm-aot": {}, 12 | "win10-x86": {}, 13 | "win10-x86-aot": {}, 14 | "win10-x64": {}, 15 | "win10-x64-aot": {} 16 | } 17 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Button/Button.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ChoiceField/ChoiceField.Checkbox.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ChoiceField/ChoiceField.Disabled.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ChoiceField/ChoiceField.Checkbox.Selected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Data.Entity; 2 | using System.Web.Http; 3 | using ADFSTodoSPA.DAL; 4 | 5 | namespace ADFSTodoSPA 6 | { 7 | public class WebApiApplication : System.Web.HttpApplication 8 | { 9 | protected void Application_Start() 10 | { 11 | Database.SetInitializer(new TodoListServiceInitializer()); 12 | GlobalConfiguration.Configure(WebApiConfig.Register); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/ModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 4 | { 5 | /// 6 | /// Describes a type model. 7 | /// 8 | public abstract class ModelDescription 9 | { 10 | public string Documentation { get; set; } 11 | 12 | public Type ModelType { get; set; } 13 | 14 | public string Name { get; set; } 15 | } 16 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/ChoiceField/ChoiceField.Checkbox.Disabled.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ListItem/ListItem.Document.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | Perdivn Pitch.mp3 6 | 08/11/14 12:32p 7 |
8 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/SearchBox/SearchBox.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Button/Button.Hero.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/DisplayTemplates/KeyValuePairModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | @model KeyValuePairModelDescription 3 | Pair of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key] 4 | and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value] -------------------------------------------------------------------------------- /B2CVideoPortal/components/Button/Button.Command.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Button/Button.Compound.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Button/Button.Primary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/ModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 4 | { 5 | /// 6 | /// Describes a type model. 7 | /// 8 | public abstract class ModelDescription 9 | { 10 | public string Documentation { get; set; } 11 | 12 | public Type ModelType { get; set; } 13 | 14 | public string Name { get; set; } 15 | } 16 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/DisplayTemplates/DictionaryModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | @model DictionaryModelDescription 3 | Dictionary of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key] 4 | and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value] -------------------------------------------------------------------------------- /CoreWebAPISignedJWTs/CoreWebAPISignedJWTs.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.2 5 | InProcess 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /JwtCracker/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/List/List.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "List", 3 | "notes": "", 4 | "template": "List.html", 5 | "class": "ms-List", 6 | "wrapBranches": true, 7 | "fileOrder": [ 8 | "List.html", 9 | "List.Grid.html" 10 | ], 11 | "dependencies": [ 12 | "ListItem" 13 | ], 14 | "branches": [ 15 | { 16 | "name": "Basic", 17 | "default": true 18 | }, 19 | { 20 | "name": "Grid", 21 | "class": "ms-List--grid" 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/TextField/TextField.Placeholder.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 |
8 | 9 | 10 |
11 | -------------------------------------------------------------------------------- /CoreWebAPIServer/Controllers/AADController.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using Microsoft.AspNetCore.Mvc; 3 | using Microsoft.AspNetCore.Authorization; 4 | 5 | namespace CoreWebAPIServer.Controllers 6 | { 7 | [Authorize] 8 | [Route("api/[controller]")] 9 | public class AADController : Controller 10 | { 11 | [HttpGet] 12 | public IEnumerable Get() 13 | { 14 | return new string[] { "World" }; 15 | } 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /WebAPIClientSingleTenant/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.IdentityModel.Clients.ActiveDirectory": "3.5.207081303-alpha", 4 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0", 5 | "Newtonsoft.Json": "6.0.8" 6 | }, 7 | "frameworks": { 8 | "uap10.0": {} 9 | }, 10 | "runtimes": { 11 | "win10-arm": {}, 12 | "win10-arm-aot": {}, 13 | "win10-x86": {}, 14 | "win10-x86-aot": {}, 15 | "win10-x64": {}, 16 | "win10-x64-aot": {} 17 | } 18 | } -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/App/Scripts/homeCtrl.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | angular.module('todoApp') 3 | .controller('homeCtrl', ['$scope', 'adalAuthenticationService','$location', function ($scope, adalService, $location) { 4 | $scope.login = function () { 5 | adalService.login(); 6 | }; 7 | $scope.logout = function () { 8 | adalService.logOut(); 9 | }; 10 | $scope.isActive = function (viewLocation) { 11 | return viewLocation === $location.path(); 12 | }; 13 | }]); -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/DisplayTemplates/DictionaryModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | @model DictionaryModelDescription 3 | Dictionary of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key] 4 | and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value] -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/DisplayTemplates/KeyValuePairModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | @model KeyValuePairModelDescription 3 | Pair of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key] 4 | and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value] -------------------------------------------------------------------------------- /B2CVideoPortal/components/Pivot/Pivot.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | 3 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 4 | { 5 | public class ComplexTypeModelDescription : ModelDescription 6 | { 7 | public ComplexTypeModelDescription() 8 | { 9 | Properties = new Collection(); 10 | } 11 | 12 | public Collection Properties { get; private set; } 13 | } 14 | } -------------------------------------------------------------------------------- /B2CNETCoreWebApp/B2CNETCoreWebApp.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.1 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /CoreWebAPISignedJWTs/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore; 2 | using Microsoft.AspNetCore.Hosting; 3 | 4 | namespace CoreWebAPISignedJWTs 5 | { 6 | public class Program 7 | { 8 | public static void Main(string[] args) 9 | { 10 | CreateWebHostBuilder(args).Build().Run(); 11 | } 12 | 13 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) => 14 | WebHost.CreateDefaultBuilder(args) 15 | .UseStartup(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/DatePicker/DatePicker.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DatePicker", 3 | "notes": "This is a sample Date Picker that works for Gregorian calendars. It uses jQuery and pickadate.js for demonstration.", 4 | "template": "DatePicker.html", 5 | "class": "ms-DatePicker", 6 | "dependencies": [ 7 | "TextField", 8 | "Label", 9 | "Link" 10 | ], 11 | "branches": [ 12 | { 13 | "name": "Default", 14 | "default": true 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Controllers/ADFSController.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Web.Http; 3 | 4 | namespace ADFSWebAPIServer.Controllers 5 | { 6 | //Comment out the line below if you want to allow API usage in browser 7 | [HostAuthentication("OAuth2Bearer")] 8 | [Authorize] 9 | public class ADFSController : ApiController 10 | { 11 | [HttpGet] 12 | public IEnumerable Hello() 13 | { 14 | return new string[] { "World" }; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Pivot/Pivot.Tabs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 | 6 | 7 | 10 |
11 | -------------------------------------------------------------------------------- /JwtCracker/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | 4 | namespace JwtCracker 5 | { 6 | static class Program 7 | { 8 | /// 9 | /// The main entry point for the application. 10 | /// 11 | [STAThread] 12 | static void Main() 13 | { 14 | Application.EnableVisualStyles(); 15 | Application.SetCompatibleTextRenderingDefault(false); 16 | Application.Run(new frmJwtCracker()); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | 3 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 4 | { 5 | public class ComplexTypeModelDescription : ModelDescription 6 | { 7 | public ComplexTypeModelDescription() 8 | { 9 | Properties = new Collection(); 10 | } 11 | 12 | public Collection Properties { get; private set; } 13 | } 14 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 5 | { 6 | public class EnumTypeModelDescription : ModelDescription 7 | { 8 | public EnumTypeModelDescription() 9 | { 10 | Values = new Collection(); 11 | } 12 | 13 | public Collection Values { get; private set; } 14 | } 15 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Pivot/Pivot.Large.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 | 6 | 7 | 10 |
11 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Spinner/Spinner.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Spinner styles 7 | 8 | 9 | .ms-Spinner { 10 | position: relative; 11 | width: 32px; 12 | height: 32px; 13 | } 14 | 15 | .ms-Spinner-circle { 16 | position: absolute; 17 | border-radius: 999px; 18 | background-color: black; 19 | opacity: 0; 20 | } 21 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Controllers/AADController.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Web.Http; 3 | 4 | namespace WebAPIServerSingleTenant.Controllers 5 | { 6 | //Comment out the line below if you want to allow API usage in browser 7 | [HostAuthentication("OAuth2Bearer")] 8 | [Authorize] 9 | public class AADController : ApiController 10 | { 11 | [HttpGet] 12 | public IEnumerable Hello() 13 | { 14 | return new string[] { "World" }; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Contact"; 3 | } 4 |

@ViewData["Title"]

5 |

@ViewData["Message"]

6 | 7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P: 11 | 425.555.0100 12 |
13 | 14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com 17 |
18 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Pivot/Pivot.Tabs.Large.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 | 6 | 7 | 10 |
11 | -------------------------------------------------------------------------------- /CoreWebAPIServer/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Authentication": { 3 | "AzureAd": { 4 | "AADInstance": "https://login.microsoftonline.com/", 5 | "Audience": "https://contoso.onmicrosoft.com/CoreWebAPIServer", 6 | "ClientId": "client-guid", 7 | "Domain": "contoso.onmicrosoft.com", 8 | "TenantId": "tenant-guid" 9 | } 10 | }, 11 | "Logging": { 12 | "IncludeScopes": false, 13 | "LogLevel": { 14 | "Default": "Debug", 15 | "System": "Information", 16 | "Microsoft": "Information" 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 5 | { 6 | public class EnumTypeModelDescription : ModelDescription 7 | { 8 | public EnumTypeModelDescription() 9 | { 10 | Values = new Collection(); 11 | } 12 | 13 | public Collection Values { get; private set; } 14 | } 15 | } -------------------------------------------------------------------------------- /B2CNETCoreWebApp/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Warning" 5 | } 6 | }, 7 | "AllowedHosts": "*", 8 | "AzureAdB2C": { 9 | "Instance": "https://login.microsoftonline.com/tfp/", 10 | "ClientId": "applicationId-from-portal", 11 | "CallbackPath": "/signin-oidc", 12 | "Domain": "yourtenant.onmicrosoft.com", 13 | "SignUpSignInPolicyId": "B2C_1A_Signup_Signin_Dev", 14 | "ResetPasswordPolicyId": "B2C_1_ContosoLocalPasswordReset", 15 | "EditProfilePolicyId": "" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Toggle/Toggle.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Let apps use my location 5 | 6 | 10 |
11 | -------------------------------------------------------------------------------- /ClaimsWebApp/Views/UserProfile/Index.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.Azure.ActiveDirectory.GraphClient 2 | @model User 3 | 4 | @{ 5 | ViewBag.Title = "User Profile"; 6 | } 7 |

@ViewBag.Title.

8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
Display Name@Model.DisplayName
First Name@Model.GivenName
Last Name@Model.Surname
-------------------------------------------------------------------------------- /ClaimsWebApp/Content/sass/_Fabric.Common.scss: -------------------------------------------------------------------------------- 1 | @import "./Fabric.Animations"; 2 | @import "./Fabric.Color.Mixins"; 3 | @import "./Fabric.Color.Variables"; 4 | @import "./Fabric.Grid"; 5 | @import "./Fabric.Icons"; 6 | @import "./Fabric.Mixins"; 7 | @import './Fabric.Responsive.Utilities.Variables'; 8 | @import "./Fabric.Responsive.Variables"; 9 | @import "./Fabric.Typography"; 10 | @import "./Fabric.Typography.Fonts"; 11 | @import "./Fabric.Typography.Variables"; 12 | @import "./Fabric.Utilities"; 13 | @import "./Fabric.ZIndex.Variables"; 14 | @import "./Office.Color.Variables"; -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /B2CVideoPortal/components/Dropdown/Dropdown.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 12 |
13 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/OrgChart/OrgChart.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "OrgChart", 3 | "notes": "", 4 | "template": "OrgChart.html", 5 | "class": "ms-OrgChart", 6 | "wrapBranches": true, 7 | "dependencies": [ 8 | "Persona" 9 | ], 10 | "fileOrder": [ 11 | "OrgChart.html", 12 | "OrgChart.Square.html" 13 | ], 14 | "branches": [ 15 | { 16 | "name": "Regular", 17 | "default": true 18 | }, 19 | { 20 | "name": "Circles", 21 | "notes": "Circle personas.", 22 | "class": "ms-OrgChart--circles" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/lib/jquery-validation-unobtrusive/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation-unobtrusive", 3 | "homepage": "https://github.com/aspnet/jquery-validation-unobtrusive", 4 | "version": "3.2.9", 5 | "_release": "3.2.9", 6 | "_resolution": { 7 | "type": "version", 8 | "tag": "v3.2.9", 9 | "commit": "a91f5401898e125f10771c5f5f0909d8c4c82396" 10 | }, 11 | "_source": "https://github.com/aspnet/jquery-validation-unobtrusive.git", 12 | "_target": "^3.2.9", 13 | "_originalSource": "jquery-validation-unobtrusive", 14 | "_direct": true 15 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Toggle/Toggle.TextLeft.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Let apps use my location 5 | 6 | 10 |
11 | -------------------------------------------------------------------------------- /ClaimsWebApp/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using System.Web.Optimization; 3 | using System.Web.Routing; 4 | 5 | namespace ClaimsWebApp 6 | { 7 | public class MvcApplication : System.Web.HttpApplication 8 | { 9 | protected void Application_Start() 10 | { 11 | AreaRegistration.RegisterAllAreas(); 12 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 13 | RouteConfig.RegisterRoutes(RouteTable.Routes); 14 | BundleConfig.RegisterBundles(BundleTable.Bundles); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /JwtCracker/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Dropdown/Dropdown.Disabled.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 12 |
13 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Label/Label.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Label", 3 | "notes": "A standard form label.", 4 | "template": "Label.html", 5 | "class": "ms-Label", 6 | "wrapBranches": true, 7 | "fileOrder": [ 8 | "Label.html", 9 | "Label.Disabled.html", 10 | "Label.Required.html" 11 | ], 12 | "branches": [ 13 | { 14 | "name": "Standard", 15 | "default": true 16 | }, 17 | { 18 | "name": "Disabled", 19 | "class": "is-disabled" 20 | }, 21 | { 22 | "name": "Required", 23 | "class": "is-required" 24 | } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ProgressIndicator/ProgressIndicator.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
Example.jpg
5 |
6 |
7 |
8 |
9 |
My Progress Description
10 |
11 | -------------------------------------------------------------------------------- /ClaimsWebApp/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using System.Web.Routing; 3 | 4 | namespace ClaimsWebApp 5 | { 6 | public class RouteConfig 7 | { 8 | public static void RegisterRoutes(RouteCollection routes) 9 | { 10 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 11 | 12 | routes.MapRoute( 13 | name: "Default", 14 | url: "{controller}/{action}/{id}", 15 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 16 | ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /CoreWebAPIServer/Program.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using Microsoft.AspNetCore.Hosting; 3 | using Microsoft.AspNetCore.Builder; 4 | 5 | namespace CoreWebAPIServer 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | var host = new WebHostBuilder() 12 | .UseKestrel() 13 | .UseContentRoot(Directory.GetCurrentDirectory()) 14 | .UseIISIntegration() 15 | .UseStartup() 16 | .Build(); 17 | 18 | host.Run(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /B2CVideoPortal/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using System.Web.Routing; 3 | 4 | namespace B2CVideoPortal 5 | { 6 | public class RouteConfig 7 | { 8 | public static void RegisterRoutes(RouteCollection routes) 9 | { 10 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 11 | 12 | routes.MapRoute( 13 | name: "Default", 14 | url: "{controller}/{action}/{id}", 15 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 16 | ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.ExtraSmall.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
12 |
13 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using System.Web.Routing; 3 | 4 | namespace ADFSWebAPIServer 5 | { 6 | public class RouteConfig 7 | { 8 | public static void RegisterRoutes(RouteCollection routes) 9 | { 10 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 11 | 12 | routes.MapRoute( 13 | name: "Default", 14 | url: "{controller}/{action}/{id}", 15 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 16 | ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /CoreWebAPIServer/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using System.Web.Routing; 3 | 4 | namespace WebAPIServerSingleTenant 5 | { 6 | public class RouteConfig 7 | { 8 | public static void RegisterRoutes(RouteCollection routes) 9 | { 10 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 11 | 12 | routes.MapRoute( 13 | name: "Default", 14 | url: "{controller}/{action}/{id}", 15 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 16 | ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /GraphTreeView/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace GraphTreeView 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new GraphTreeView()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/DAL/TodoListServiceContext.cs: -------------------------------------------------------------------------------- 1 | using System.Data.Entity; 2 | using System.Data.Entity.ModelConfiguration.Conventions; 3 | using ADFSTodoSPA.Controllers; 4 | 5 | namespace ADFSTodoSPA.DAL 6 | { 7 | public class TodoListServiceContext: DbContext 8 | { 9 | public TodoListServiceContext() 10 | : base("TodoListServiceContext") 11 | { } 12 | public DbSet Todoes { get; set; } 13 | protected override void OnModelCreating(DbModelBuilder modelBuilder) 14 | { 15 | modelBuilder.Conventions.Remove(); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /B2CVideoPortal/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Override the default bootstrap behavior where horizontal description lists 13 | will truncate terms that are too long to fit in the left column 14 | */ 15 | .dl-horizontal dt { 16 | white-space: normal; 17 | } 18 | 19 | /* Set width on the form input elements since they're 100% wide by default */ 20 | input, 21 | select, 22 | textarea { 23 | max-width: 280px; 24 | } 25 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Label/Label.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Form field label styles 7 | 8 | 9 | .ms-Label { 10 | .ms-font-s; 11 | .ms-u-normalize; 12 | box-sizing: border-box; 13 | display: block; 14 | padding: 5px 0; 15 | 16 | &.is-required { 17 | &:after { 18 | content: ' *'; 19 | color: @ms-color-error; 20 | } 21 | } 22 | 23 | &.is-disabled { 24 | color: @ms-color-neutralTertiary; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ClaimsWebApp/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Override the default bootstrap behavior where horizontal description lists 13 | will truncate terms that are too long to fit in the left column 14 | */ 15 | .dl-horizontal dt { 16 | white-space: normal; 17 | } 18 | 19 | /* Set width on the form input elements since they're 100% wide by default */ 20 | input, 21 | select, 22 | textarea { 23 | max-width: 280px; 24 | } 25 | -------------------------------------------------------------------------------- /AboutMePasswordGrant/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace AboutMePasswordGrant 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new AboutMeForm()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Square.ExtraSmall.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
12 |
13 | -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | 3 | namespace ADFSTodoSPA 4 | { 5 | public static class WebApiConfig 6 | { 7 | public static void Register(HttpConfiguration config) 8 | { 9 | // Web API configuration and services 10 | 11 | // Web API routes 12 | config.MapHttpAttributeRoutes(); 13 | 14 | config.Routes.MapHttpRoute( 15 | name: "DefaultApi", 16 | routeTemplate: "api/{controller}/{id}", 17 | defaults: new { id = RouteParameter.Optional } 18 | ); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | 3 | namespace ADFSWebAPIServer 4 | { 5 | public static class WebApiConfig 6 | { 7 | public static void Register(HttpConfiguration config) 8 | { 9 | // Web API configuration and services 10 | 11 | // Web API routes 12 | config.MapHttpAttributeRoutes(); 13 | 14 | config.Routes.MapHttpRoute( 15 | name: "DefaultApi", 16 | routeTemplate: "api/{controller}/{id}", 17 | defaults: new { id = RouteParameter.Optional } 18 | ); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | 3 | namespace WebAPIServerSingleTenant 4 | { 5 | public static class WebApiConfig 6 | { 7 | public static void Register(HttpConfiguration config) 8 | { 9 | // Web API configuration and services 10 | 11 | // Web API routes 12 | config.MapHttpAttributeRoutes(); 13 | 14 | config.Routes.MapHttpRoute( 15 | name: "DefaultApi", 16 | routeTemplate: "api/{controller}/{id}", 17 | defaults: new { id = RouteParameter.Optional } 18 | ); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /HelloAzureAD/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.ApplicationInsights": "1.2.3", 4 | "Microsoft.ApplicationInsights.PersistenceChannel": "1.2.3", 5 | "Microsoft.ApplicationInsights.WindowsApps": "1.1.1", 6 | "Microsoft.IdentityModel.Clients.ActiveDirectory": "3.5.207081303-alpha", 7 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0", 8 | "Newtonsoft.Json": "6.0.8" 9 | }, 10 | "frameworks": { 11 | "uap10.0": {} 12 | }, 13 | "runtimes": { 14 | "win10-arm": {}, 15 | "win10-arm-aot": {}, 16 | "win10-x86": {}, 17 | "win10-x86-aot": {}, 18 | "win10-x64": {}, 19 | "win10-x64-aot": {} 20 | } 21 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Dnd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Small.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Square.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Away.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Busy.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /ADFSTodoSPA/AppCreationScripts/Config.ps1: -------------------------------------------------------------------------------- 1 | # Variables for the registration of the AAD applications 2 | 3 | # Registeration for the SinglePageApp-DotNet JavaScript app 4 | # --------------------------------------------- 5 | # friendly name for the application, for example 'SinglePageApp-DotNet' 6 | # Apllication Type is 'Web app / API' (that is private application). 7 | # For the redirect URL, this is https://localhost:44326/ 8 | # App ID URI, is https:///SinglePageApp-DotNet 9 | $spaName = "SinglePageApp-DotNet" 10 | $spaIsPublicClient = $false 11 | $spaRedirectUri= "https://localhost:44326/" 12 | $spaAppIdURI = "https://$tenantName/$todoListSPAClientName" 13 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | using System.Web.Mvc; 3 | using System.Web.Optimization; 4 | using System.Web.Routing; 5 | 6 | namespace ADFSWebAPIServer 7 | { 8 | public class WebApiApplication : System.Web.HttpApplication 9 | { 10 | protected void Application_Start() 11 | { 12 | AreaRegistration.RegisterAllAreas(); 13 | GlobalConfiguration.Configure(WebApiConfig.Register); 14 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 15 | RouteConfig.RegisterRoutes(RouteTable.Routes); 16 | BundleConfig.RegisterBundles(BundleTable.Bundles); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) .NET Foundation. All rights reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | these files except in compliance with the License. You may obtain a copy of the 5 | License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software distributed 10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | specific language governing permissions and limitations under the License. 13 | -------------------------------------------------------------------------------- /B2CVideoPortal/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Optimization; 7 | using System.Web.Routing; 8 | 9 | namespace B2CVideoPortal 10 | { 11 | public class MvcApplication : System.Web.HttpApplication 12 | { 13 | protected void Application_Start() 14 | { 15 | AreaRegistration.RegisterAllAreas(); 16 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 17 | RouteConfig.RegisterRoutes(RouteTable.Routes); 18 | BundleConfig.RegisterBundles(BundleTable.Bundles); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Blocked.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Offline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Overlay/Overlay.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Overlay", 3 | "notes": "", 4 | "template": "Overlay.html", 5 | "class": "ms-Overlay", 6 | "wrapBranches": true, 7 | "fileOrder": [ 8 | "Overlay.html", 9 | "Overlay.Dark.html", 10 | "Overlay.None.html" 11 | ], 12 | "branches": [ 13 | { 14 | "name": "Light (default)", 15 | "default": true 16 | }, 17 | { 18 | "name": "Dark", 19 | "class": "ms-Overlay--dark" 20 | }, 21 | { 22 | "name": "None", 23 | "notes": "A hidden overlay, used primarily as part of other components like the dialog.", 24 | "class": "ms-Overlay--none" 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Available.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/PersonaCard/PersonaCard.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PersonaCard", 3 | "notes": "", 4 | "template": "PersonaCard.html", 5 | "class": "ms-PersonaCard", 6 | "wrapBranches": true, 7 | "fileOrder": [ 8 | "PersonaCard.html", 9 | "PersonaCard.Square.html" 10 | ], 11 | "dependencies": [ 12 | "Persona", 13 | "OrgChart", 14 | "Link" 15 | ], 16 | "branches": [ 17 | { 18 | "name": "Regular", 19 | "default": true 20 | }, 21 | { 22 | "name": "Circles", 23 | "notes": "This persona card uses circle personas and has the org chart built in.", 24 | "class": "ms-PersonaCard--circles" 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "main": "dist/jquery.js", 4 | "license": "MIT", 5 | "ignore": [ 6 | "package.json" 7 | ], 8 | "keywords": [ 9 | "jquery", 10 | "javascript", 11 | "browser", 12 | "library" 13 | ], 14 | "homepage": "https://github.com/jquery/jquery-dist", 15 | "version": "3.3.1", 16 | "_release": "3.3.1", 17 | "_resolution": { 18 | "type": "version", 19 | "tag": "3.3.1", 20 | "commit": "9e8ec3d10fad04748176144f108d7355662ae75e" 21 | }, 22 | "_source": "https://github.com/jquery/jquery-dist.git", 23 | "_target": "^3.3.1", 24 | "_originalSource": "jquery", 25 | "_direct": true 26 | } -------------------------------------------------------------------------------- /B2CVideoPortal/Views/Home/Claims.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Security.Claims 2 | @{ 3 | ViewBag.Title = "Claims"; 4 | } 5 |

@ViewBag.Title

6 | 7 |

Claims Present in the Claims Identity: @ViewBag.DisplayName

8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | @foreach (Claim claim in ClaimsPrincipal.Current.Claims) 16 | { 17 | 18 | 19 | 20 | 21 | } 22 |
Claim TypeClaim Value
@claim.Type@claim.Value
-------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 5 | { 6 | public class ParameterDescription 7 | { 8 | public ParameterDescription() 9 | { 10 | Annotations = new Collection(); 11 | } 12 | 13 | public Collection Annotations { get; private set; } 14 | 15 | public string Documentation { get; set; } 16 | 17 | public string Name { get; set; } 18 | 19 | public ModelDescription TypeDescription { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 4 | { 5 | /// 6 | /// Use this attribute to change the name of the generated for a type. 7 | /// 8 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = false, Inherited = false)] 9 | public sealed class ModelNameAttribute : Attribute 10 | { 11 | public ModelNameAttribute(string name) 12 | { 13 | Name = name; 14 | } 15 | 16 | public string Name { get; private set; } 17 | } 18 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Square.Away.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Square.Busy.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Square.Dnd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Square.Small.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Square.Blocked.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Square.Offline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Presence.Square.Available.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 5 | { 6 | public class ParameterDescription 7 | { 8 | public ParameterDescription() 9 | { 10 | Annotations = new Collection(); 11 | } 12 | 13 | public Collection Annotations { get; private set; } 14 | 15 | public string Documentation { get; set; } 16 | 17 | public string Name { get; set; } 18 | 19 | public ModelDescription TypeDescription { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 4 | { 5 | /// 6 | /// Use this attribute to change the name of the generated for a type. 7 | /// 8 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = false, Inherited = false)] 9 | public sealed class ModelNameAttribute : Attribute 10 | { 11 | public ModelNameAttribute(string name) 12 | { 13 | Name = name; 14 | } 15 | 16 | public string Name { get; private set; } 17 | } 18 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/ResourceModel.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 3 | @model ModelDescription 4 | 5 | 6 |
7 | 14 |

@Model.Name

15 |

@Model.Documentation

16 |
17 | @Html.DisplayFor(m => Model) 18 |
19 |
20 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace B2CNETCoreWebApp 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | CreateWebHostBuilder(args).Build().Run(); 18 | } 19 | 20 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Link/Link.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Link (anchor) styles 7 | 8 | 9 | .ms-Link { 10 | color: @ms-color-themePrimary; 11 | text-decoration: none; 12 | cursor: pointer; 13 | 14 | &:hover, 15 | &:focus { 16 | color: @ms-color-themeDarker; 17 | } 18 | 19 | &:active { 20 | color: @ms-color-themePrimary; 21 | } 22 | } 23 | 24 | 25 | //== Modifier: Hero Links 26 | // 27 | .ms-Link.ms-Link--hero { 28 | font-family: @ms-font-family-semilight; 29 | padding: 2px 8px 4px; 30 | } 31 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Large.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
In a meeting
13 |
14 |
15 | 16 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/ResourceModel.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 3 | @model ModelDescription 4 | 5 | 6 |
7 | 14 |

@Model.Name

15 |

@Model.Documentation

16 |
17 | @Html.DisplayFor(m => Model) 18 |
19 |
20 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/List/List.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // List and Grid styles 7 | 8 | 9 | .ms-List { 10 | .ms-font-m; 11 | .ms-u-normalize; 12 | } 13 | 14 | 15 | //== Modifier: List rendered as a grid 16 | // 17 | .ms-List.ms-List--grid { 18 | @media (min-width: @ms-screen-md-min) { 19 | .ms-ListItem { 20 | .ms-u-sm4; 21 | float: left; 22 | border-width: 0 1px 1px 0; 23 | } 24 | 25 | // Remove the border from the last column. 26 | .ms-ListItem:nth-child(3n) { 27 | border-width: 0 0 1px 0; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Square.Large.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
In a meeting
13 |
14 |
15 | -------------------------------------------------------------------------------- /GraphTreeView/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ContextualMenu/ContextualMenu.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Models/ApplicationDbContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.Data.Entity; 4 | 5 | namespace WebAPIServerSingleTenant.Models 6 | { 7 | public class ApplicationDbContext : DbContext 8 | { 9 | public ApplicationDbContext() 10 | : base("DefaultConnection") 11 | { 12 | } 13 | 14 | public DbSet UserTokenCacheList { get; set; } 15 | } 16 | 17 | public class UserTokenCache 18 | { 19 | [Key] 20 | public int UserTokenCacheId { get; set; } 21 | public string webUserUniqueId { get; set; } 22 | public byte[] cacheBits { get; set; } 23 | public DateTime LastWrite { get; set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/Api.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using ADFSWebAPIServer.Areas.HelpPage.Models 3 | @model HelpPageApiModel 4 | 5 | @{ 6 | var description = Model.ApiDescription; 7 | ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath; 8 | } 9 | 10 | 11 |
12 | 19 |
20 | @Html.DisplayForModel() 21 |
22 |
23 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Overlay/Overlay.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Modal overlay styles 7 | 8 | 9 | .ms-Overlay { 10 | background-color: @ms-color-whiteTranslucent40; 11 | position: absolute; 12 | bottom: 0; 13 | left: 0; 14 | right: 0; 15 | top: 0; 16 | z-index: @ms-zIndex-Overlay; 17 | } 18 | 19 | 20 | //== Modifier: Dark overlay 21 | // 22 | .ms-Overlay.ms-Overlay--dark { 23 | background-color: @ms-color-blackTranslucent40; 24 | } 25 | 26 | 27 | //== Modifier: Hidden overlay 28 | // 29 | &.ms-Overlay--none { 30 | visibility: hidden; 31 | } 32 | 33 | -------------------------------------------------------------------------------- /ClaimsWebApp/Content/sass/Fabric.Utilities.Output.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Utility classes and mixins used throughout Fabric. 7 | 8 | @import "Fabric.Utilities"; 9 | 10 | // The best box is a border box. 11 | .ms-u-borderBox, .ms-u-borderBox:before, .ms-u-borderBox:after { 12 | @include ms-u-borderBox; 13 | } 14 | 15 | // Ensures the block expands to the full height to enclose its floated childen. 16 | .ms-u-clearfix { 17 | @include ms-u-clearfix; 18 | } 19 | 20 | // Basic border-box, margin, and padding reset. 21 | .ms-u-normalize { 22 | @include ms-u-normalize; 23 | } 24 | -------------------------------------------------------------------------------- /ADFSTodoSPA/TodoSPA/App/Scripts/todoListSvc.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | angular.module('todoApp') 3 | .factory('todoListSvc', ['$http', function ($http) { 4 | return { 5 | getItems : function(){ 6 | return $http.get('/api/TodoList'); 7 | }, 8 | getItem : function(id){ 9 | return $http.get('/api/TodoList/' + id); 10 | }, 11 | postItem : function(item){ 12 | return $http.post('/api/TodoList/',item); 13 | }, 14 | putItem : function(item){ 15 | return $http.put('/api/TodoList/', item); 16 | }, 17 | deleteItem : function(id){ 18 | return $http({ 19 | method: 'DELETE', 20 | url: '/api/TodoList/' + id 21 | }); 22 | } 23 | }; 24 | }]); -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/Api.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using WebAPIServerSingleTenant.Areas.HelpPage.Models 3 | @model HelpPageApiModel 4 | 5 | @{ 6 | var description = Model.ApiDescription; 7 | ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath; 8 | } 9 | 10 | 11 |
12 | 19 |
20 | @Html.DisplayForModel() 21 |
22 |
23 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:45859", 7 | "sslPort": 44315 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "B2CNETCoreWebApp": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 22 | "environmentVariables": { 23 | "ASPNETCORE_ENVIRONMENT": "Development" 24 | } 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.ExtraLarge.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
In a meeting
13 |
Available at 4:00pm
14 |
15 |
16 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Http; 6 | using System.Web.Mvc; 7 | using System.Web.Optimization; 8 | using System.Web.Routing; 9 | 10 | namespace WebAPIServerSingleTenant 11 | { 12 | public class WebApiApplication : System.Web.HttpApplication 13 | { 14 | protected void Application_Start() 15 | { 16 | AreaRegistration.RegisterAllAreas(); 17 | GlobalConfiguration.Configure(WebApiConfig.Register); 18 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 19 | RouteConfig.RegisterRoutes(RouteTable.Routes); 20 | BundleConfig.RegisterBundles(BundleTable.Bundles); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Callout/Callout.Peek.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |

Uploaded 2 items to Alton's OneDrive

7 |
8 |
9 |
10 | 14 |
15 |
16 |
17 |
-------------------------------------------------------------------------------- /B2CVideoPortal/components/Persona/Persona.Square.ExtraLarge.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
In a meeting
13 |
Available at 4:00pm
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClaimsWebApp/Models/ApplicationDbContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Data.Entity; 5 | using System.Linq; 6 | using System.Web; 7 | 8 | namespace ClaimsWebApp.Models 9 | { 10 | public class ApplicationDbContext : DbContext 11 | { 12 | public ApplicationDbContext() 13 | : base("DefaultConnection") 14 | { 15 | } 16 | 17 | public DbSet UserTokenCacheList { get; set; } 18 | } 19 | 20 | public class UserTokenCache 21 | { 22 | [Key] 23 | public int UserTokenCacheId { get; set; } 24 | public string webUserUniqueId { get; set; } 25 | public byte[] cacheBits { get; set; } 26 | public DateTime LastWrite { get; set; } 27 | } 28 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/HelpPageAreaRegistration.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | using System.Web.Mvc; 3 | 4 | namespace ADFSWebAPIServer.Areas.HelpPage 5 | { 6 | public class HelpPageAreaRegistration : AreaRegistration 7 | { 8 | public override string AreaName 9 | { 10 | get 11 | { 12 | return "HelpPage"; 13 | } 14 | } 15 | 16 | public override void RegisterArea(AreaRegistrationContext context) 17 | { 18 | context.MapRoute( 19 | "HelpPage_Default", 20 | "Help/{action}/{apiId}", 21 | new { controller = "Help", action = "Index", apiId = UrlParameter.Optional }); 22 | 23 | HelpPageConfig.Register(GlobalConfiguration.Configuration); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /CoreWebAPIServer/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:58847/", 7 | "sslPort": 44399 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "launchUrl": "https://localhost:44399/", 15 | "environmentVariables": { 16 | "ASPNETCORE_ENVIRONMENT": "Development" 17 | } 18 | }, 19 | "CoreWebAPIServer": { 20 | "commandName": "Project", 21 | "launchBrowser": true, 22 | "launchUrl": "http://localhost:5000/api/values", 23 | "environmentVariables": { 24 | "ASPNETCORE_ENVIRONMENT": "Development" 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /B2CVideoPortal/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using System.Security.Claims; 3 | using System.Web.Mvc; 4 | 5 | namespace B2CVideoPortal.Controllers 6 | { 7 | public class HomeController : Controller 8 | { 9 | public ActionResult Index() 10 | { 11 | return View(); 12 | } 13 | 14 | public ActionResult Claims() 15 | { 16 | Claim displayName = ClaimsPrincipal.Current.FindFirst(ClaimsPrincipal.Current.Identities.First().NameClaimType); 17 | ViewBag.DisplayName = displayName != null ? displayName.Value : string.Empty; 18 | return View(); 19 | } 20 | 21 | public ActionResult Error(string message) 22 | { 23 | ViewBag.Message = message; 24 | return View("Error"); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /B2CVideoPortal/components/Callout/Callout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |

All of your favorite people

7 |
8 |
9 |
10 |

Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.

11 |
12 |
13 | Learn more 14 |
15 |
16 |
17 |
18 | -------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/HelpPageAreaRegistration.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | using System.Web.Mvc; 3 | 4 | namespace WebAPIServerSingleTenant.Areas.HelpPage 5 | { 6 | public class HelpPageAreaRegistration : AreaRegistration 7 | { 8 | public override string AreaName 9 | { 10 | get 11 | { 12 | return "HelpPage"; 13 | } 14 | } 15 | 16 | public override void RegisterArea(AreaRegistrationContext context) 17 | { 18 | context.MapRoute( 19 | "HelpPage_Default", 20 | "Help/{action}/{apiId}", 21 | new { controller = "Help", action = "Index", apiId = UrlParameter.Optional }); 22 | 23 | HelpPageConfig.Register(GlobalConfiguration.Configuration); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /ADFSWebAPIServer/Areas/HelpPage/Views/Help/DisplayTemplates/EnumTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using ADFSWebAPIServer.Areas.HelpPage.ModelDescriptions 2 | @model EnumTypeModelDescription 3 | 4 |

Possible enumeration values:

5 | 6 | 7 | 8 | 9 | 10 | 11 | @foreach (EnumValueDescription value in Model.Values) 12 | { 13 | 14 | 15 | 18 | 21 | 22 | } 23 | 24 |
NameValueDescription
@value.Name 16 |

@value.Value

17 |
19 |

@value.Documentation

20 |
-------------------------------------------------------------------------------- /WebAPIServerSingleTenant/Areas/HelpPage/Views/Help/DisplayTemplates/EnumTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIServerSingleTenant.Areas.HelpPage.ModelDescriptions 2 | @model EnumTypeModelDescription 3 | 4 |

Possible enumeration values:

5 | 6 | 7 | 8 | 9 | 10 | 11 | @foreach (EnumValueDescription value in Model.Values) 12 | { 13 | 14 | 15 | 18 | 21 | 22 | } 23 | 24 |
NameValueDescription
@value.Name 16 |

@value.Value

17 |
19 |

@value.Documentation

20 |
-------------------------------------------------------------------------------- /HelloAzureAD/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 11 |
12 |
13 |

Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.

14 |
15 |
16 | Learn more 17 |
18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Pivot/Pivot.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Pivot", 3 | "notes": "", 4 | "template": "Pivot.html", 5 | "class": "ms-Pivot", 6 | "wrapBranches": true, 7 | "fileOrder": [ 8 | "Pivot.html", 9 | "Pivot.Large.html", 10 | "Pivot.Tabs.html", 11 | "Pivot.Tabs.Large.html" 12 | ], 13 | "branches": [ 14 | { 15 | "name": "Pivots", 16 | "default": true, 17 | "branches": [ 18 | { 19 | "name": "Standard", 20 | "default": true 21 | }, 22 | { 23 | "name": "Large", 24 | "class": "ms-Pivot--large" 25 | } 26 | ] 27 | }, 28 | 29 | { 30 | "name": "Tabs", 31 | "class": "ms-Pivot--tabs", 32 | "branches": [ 33 | { 34 | "name": "Standard", 35 | "default": true 36 | }, 37 | { 38 | "name": "Large", 39 | "class": "ms-Pivot--large" 40 | } 41 | ] 42 | } 43 | ] 44 | } 45 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/OrgChart/OrgChart.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Org chart styles 7 | 8 | 9 | .ms-OrgChart { 10 | .ms-font-m; 11 | .ms-u-normalize; 12 | } 13 | 14 | .ms-OrgChart-groupTitle { 15 | color: @ms-color-neutralSecondary; 16 | line-height: 1; 17 | } 18 | 19 | .ms-OrgChart-list { 20 | padding: 0; 21 | margin: 12px 0 16px 0; 22 | } 23 | 24 | .ms-OrgChart-listItem { 25 | height: 50px; 26 | width: 100%; 27 | position: relative; 28 | list-style: none; 29 | margin-bottom: 8px; 30 | } 31 | 32 | .ms-OrgChart-listItemBtn { 33 | .button-reset(); 34 | position: relative; 35 | height: 50px; 36 | width: 100%; 37 | background: none; 38 | border: 0; 39 | text-align: left; 40 | margin: 0; 41 | padding: 0; 42 | outline: transparent; 43 | } 44 | -------------------------------------------------------------------------------- /ClaimsWebApp/Content/sass/_Fabric.Utilities.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Utility classes and mixins used throughout Fabric. 7 | 8 | @import "Fabric.Mixins"; 9 | 10 | // The best box is a border box. 11 | @mixin ms-u-borderBox { 12 | box-sizing: border-box; 13 | } 14 | 15 | // Ensures the block expands to the full height to enclose its floated childen. 16 | 17 | @mixin ms-u-clearfix { 18 | *zoom: 1; 19 | &:before, 20 | &:after { 21 | display: table; 22 | content: ""; 23 | line-height: 0; 24 | } 25 | &:after { 26 | clear: both; 27 | } 28 | } 29 | 30 | // Basic border-box, margin, and padding reset. 31 | @mixin ms-u-normalize { 32 | @include ms-u-borderBox; 33 | @include resetMargins; 34 | @include resetPadding; 35 | @include resetBoxShadow; 36 | } 37 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ListItem/ListItem.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Panel/Panel.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Panel", 3 | "notes": "", 4 | "template": "Panel.html", 5 | "class": "ms-Panel", 6 | "dependencies": [ 7 | "Button", 8 | "CommandBar", 9 | "Label", 10 | "Overlay" 11 | ], 12 | "wrapBranches": true, 13 | "fileOrder": [ 14 | "Panel.html" 15 | ], 16 | "branches": [ 17 | { 18 | "name": "Small", 19 | "default": true, 20 | "class": "ms-Panel--small", 21 | "branches": [ 22 | { 23 | "name": "Right", 24 | "default": true 25 | }, 26 | { 27 | "name": "Left", 28 | "class": "ms-Panel--left" 29 | } 30 | ] 31 | }, 32 | { 33 | "name": "Medium", 34 | "class": "ms-Panel--medium" 35 | }, 36 | { 37 | "name": "Large", 38 | "class": "ms-Panel--large" 39 | }, 40 | { 41 | "name": "Extra Large", 42 | "class": "ms-Panel--extraLarge" 43 | } 44 | ] 45 | } 46 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/Pivot/jquery.Pivot.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * Pivot Plugin 5 | * 6 | * Adds basic demonstration functionality to .ms-Pivot components. 7 | * 8 | * @param {jQuery Object} One or more .ms-Pivot components 9 | * @return {jQuery Object} The same components (allows for chaining) 10 | */ 11 | (function ($) { 12 | $.fn.Pivot = function () { 13 | 14 | /** Go through each pivot we've been given. */ 15 | return this.each(function () { 16 | 17 | var $pivotContainer = $(this); 18 | 19 | /** When clicking/tapping a link, select it. */ 20 | $pivotContainer.on('click', '.ms-Pivot-link', function(event) { 21 | event.preventDefault(); 22 | $(this).siblings('.ms-Pivot-link').removeClass('is-selected'); 23 | $(this).addClass('is-selected'); 24 | }); 25 | 26 | }); 27 | 28 | }; 29 | })(jQuery); 30 | -------------------------------------------------------------------------------- /B2CVideoPortal/less/_Fabric.Icons.Font.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Icon font-family definition 7 | 8 | /* 9 | Your use of the content in the files referenced here are subject to the terms of the license at http://aka.ms/fabric-font-license 10 | */ 11 | 12 | 13 | @font-face { 14 | font-family: 'Office365Icons'; 15 | src: url('@{ms-font-directory}/icons/office365icons.eot?'); 16 | src: url('@{ms-font-directory}/icons/office365icons.eot?#iefix') format('embedded-opentype'), 17 | url('@{ms-font-directory}/icons/office365icons.woff?') format('woff'), 18 | url('@{ms-font-directory}/icons/office365icons.ttf?') format('truetype'), 19 | url('@{ms-font-directory}/icons/office365icons.svg?#office365icons') format('svg'); 20 | font-weight: normal; 21 | font-style: normal; 22 | } 23 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ListItem/ListItem.Selectable.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ListItem/ListItem.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ListItem", 3 | "notes": "", 4 | "template": "ListItem.html", 5 | "class": "ms-ListItem", 6 | "fileOrder": [ 7 | "ListItem.html", 8 | "ListItem.Selectable.html", 9 | "ListItem.Selected.html", 10 | "ListItem.Unseen.html", 11 | "ListItem.Unread.html", 12 | "ListItem.Image.html", 13 | "ListItem.Document.html" 14 | ], 15 | "branches": [ 16 | { 17 | "name": "Standard", 18 | "default": true 19 | }, 20 | { 21 | "name": "With image", 22 | "template": "ListItem.Image.html" 23 | }, 24 | { 25 | "name": "Unread", 26 | "class": "is-unread" 27 | }, 28 | { 29 | "name": "Unseen", 30 | "class": "is-unseen" 31 | }, 32 | { 33 | "name": "Selectable", 34 | "class": "is-selectable" 35 | }, 36 | { 37 | "name": "Document", 38 | "template": "ListItem.Document.html", 39 | "class": "ms-ListItem--document" 40 | } 41 | ] 42 | } 43 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ListItem/ListItem.Unread.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ListItem/ListItem.Unseen.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /B2CVideoPortal/less/_Fabric.ZIndex.Variables.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Z-Index Layeringz 7 | 8 | 9 | // Base Layer Variables 10 | @ms-zIndex-0: 0; 11 | @ms-zIndex-1: 100; 12 | @ms-zIndex-2: 200; 13 | @ms-zIndex-3: 300; 14 | @ms-zIndex-4: 400; 15 | @ms-zIndex-5: 500; 16 | 17 | // Base Layer Modifier Variables 18 | @ms-zIndex-back: 0; 19 | @ms-zIndex-middle: 5; 20 | @ms-zIndex-front: 10; 21 | 22 | 23 | // Fabric Component Base Layer Assignments 24 | 25 | @ms-zIndex-Callout: @ms-zIndex-1; 26 | @ms-zIndex-ContextualMenu: @ms-zIndex-1; 27 | @ms-zIndex-Overlay: @ms-zIndex-2; 28 | @ms-zIndex-Panel: @ms-zIndex-3; 29 | @ms-zIndex-DatePicker: @ms-zIndex-3; 30 | @ms-zIndex-Dialog: @ms-zIndex-3; 31 | @ms-zIndex-PeoplePicker: @ms-zIndex-3; 32 | @ms-zIndex-Dropdown: @ms-zIndex-4; 33 | -------------------------------------------------------------------------------- /B2CNETCoreWebApp/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | /* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\ 2 | for details on configuring this project to bundle and minify static web assets. */ 3 | body { 4 | padding-top: 50px; 5 | padding-bottom: 20px; 6 | } 7 | 8 | /* Wrapping element */ 9 | /* Set some basic padding to keep content from hitting the edges */ 10 | .body-content { 11 | padding-left: 15px; 12 | padding-right: 15px; 13 | } 14 | 15 | /* Carousel */ 16 | .carousel-caption p { 17 | font-size: 20px; 18 | line-height: 1.4; 19 | } 20 | 21 | /* Make .svg files in the carousel display properly in older browsers */ 22 | .carousel-inner .item img[src$=".svg"] { 23 | width: 100%; 24 | } 25 | 26 | /* QR code generator */ 27 | #qrCode { 28 | margin: 15px; 29 | } 30 | 31 | /* Hide/rearrange for smaller screens */ 32 | @media screen and (max-width: 767px) { 33 | /* Hide captions */ 34 | .carousel-caption { 35 | display: none; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /B2CVideoPortal/components/ListItem/ListItem.Selected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClaimsWebApp/Content/sass/_Fabric.ZIndex.Variables.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Z-Index Layeringz 7 | 8 | 9 | // Base Layer Variables 10 | $ms-zIndex-0: 0; 11 | $ms-zIndex-1: 100; 12 | $ms-zIndex-2: 200; 13 | $ms-zIndex-3: 300; 14 | $ms-zIndex-4: 400; 15 | $ms-zIndex-5: 500; 16 | 17 | // Base Layer Modifier Variables 18 | $ms-zIndex-back: 0; 19 | $ms-zIndex-middle: 5; 20 | $ms-zIndex-front: 10; 21 | 22 | 23 | // Fabric Component Base Layer Assignments 24 | 25 | $ms-zIndex-Callout: $ms-zIndex-1; 26 | $ms-zIndex-ContextualMenu: $ms-zIndex-1; 27 | $ms-zIndex-Overlay: $ms-zIndex-2; 28 | $ms-zIndex-Panel: $ms-zIndex-3; 29 | $ms-zIndex-DatePicker: $ms-zIndex-3; 30 | $ms-zIndex-Dialog: $ms-zIndex-3; 31 | $ms-zIndex-PeoplePicker: $ms-zIndex-3; 32 | $ms-zIndex-Dropdown: $ms-zIndex-4; 33 | -------------------------------------------------------------------------------- /ADFSWebAPIClient/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 |