├── 1-WebApp-OIDC ├── 1-5-B2C │ ├── Placeholder.txt │ ├── wwwroot │ │ ├── js │ │ │ ├── site.min.js │ │ │ └── site.js │ │ ├── lib │ │ │ ├── bootstrap │ │ │ │ ├── package.json │ │ │ │ └── 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 │ │ ├── favicon.ico │ │ └── css │ │ │ ├── site.min.css │ │ │ └── site.css │ ├── .gitignore │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── _ViewImports.cshtml │ │ ├── Home │ │ │ ├── Claims.cshtml │ │ │ └── Index.cshtml │ │ └── Shared │ │ │ └── Error.cshtml │ ├── Properties │ │ ├── serviceDependencies.json │ │ ├── serviceDependencies.local.json │ │ └── launchSettings.json │ ├── ReadmeFiles │ │ ├── sign-in.png │ │ └── v2-variations.png │ ├── appsettings.Development.json │ ├── Models │ │ └── ErrorViewModel.cs │ ├── Program.cs │ ├── appsettings.json │ ├── Controllers │ │ └── HomeController.cs │ └── WebApp-OpenIDConnect-DotNet.csproj └── 1-1-MyOrg │ ├── .gitignore │ ├── Views │ ├── _ViewStart.cshtml │ ├── _ViewImports.cshtml │ ├── Home │ │ ├── Privacy.cshtml │ │ └── Index.cshtml │ └── Shared │ │ ├── _ValidationScriptsPartial.cshtml │ │ ├── _LoginPartial.cshtml │ │ └── Error.cshtml │ ├── Properties │ ├── serviceDependencies.json │ ├── serviceDependencies.local.json │ └── launchSettings.json │ ├── wwwroot │ ├── lib │ │ ├── bootstrap │ │ │ └── package.json │ │ └── jquery-validation-unobtrusive │ │ │ └── LICENSE.txt │ ├── favicon.ico │ └── js │ │ └── site.js │ ├── ReadmeFiles │ ├── sign-in.png │ └── v2-variations.png │ ├── appsettings.Development.json │ ├── Models │ └── ErrorViewModel.cs │ ├── Program.cs │ └── WebApp-OpenIDConnect-DotNet.csproj ├── 3-WebApp-multi-APIs ├── wwwroot │ ├── js │ │ ├── site.min.js │ │ └── site.js │ ├── lib │ │ ├── bootstrap │ │ │ ├── package.json │ │ │ └── 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 │ ├── favicon.ico │ └── css │ │ ├── site.min.css │ │ └── site.css ├── Views │ ├── _ViewStart.cshtml │ ├── Home │ │ ├── Blob.cshtml │ │ ├── Privacy.cshtml │ │ ├── Index.cshtml │ │ └── Tenants.cshtml │ ├── _ViewImports.cshtml │ └── Shared │ │ ├── _LoginPartial.cshtml │ │ └── Error.cshtml ├── Properties │ ├── serviceDependencies.json │ ├── serviceDependencies.local.json │ └── launchSettings.json ├── ReadmeFiles │ └── architecture.png ├── appsettings.Development.json ├── Services │ ├── MicrosoftGraph-Rest │ │ ├── WebOptions.cs │ │ ├── IGraphApiOperations.cs │ │ └── Bootstrapper.cs │ └── ARM │ │ ├── IArmOperations.cs │ │ ├── IArmOperationsWithImplicitAuth.cs │ │ └── ArmSimplifiedDataModel.cs ├── Models │ └── ErrorViewModel.cs ├── Infrastructure │ └── Constants.cs └── Program.cs ├── 5-WebApp-AuthZ ├── 5-1-Roles │ ├── wwwroot │ │ ├── js │ │ │ ├── site.min.js │ │ │ └── site.js │ │ ├── lib │ │ │ ├── bootstrap │ │ │ │ ├── package.json │ │ │ │ └── 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 │ │ ├── favicon.ico │ │ ├── images │ │ │ ├── GetApplications.png │ │ │ └── Sign-in-Consent.png │ │ └── css │ │ │ ├── site.min.css │ │ │ └── site.css │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── _ViewImports.cshtml │ │ ├── Home │ │ │ ├── Privacy.cshtml │ │ │ └── Users.cshtml │ │ ├── Account │ │ │ └── AccessDenied.cshtml │ │ └── Shared │ │ │ ├── _LoginPartial.cshtml │ │ │ └── Error.cshtml │ ├── Properties │ │ ├── serviceDependencies.json │ │ ├── serviceDependencies.local.json │ │ └── launchSettings.json │ ├── ReadmeFiles │ │ ├── topology.png │ │ ├── Sign-in-Consent.png │ │ └── v2-variations.png │ ├── appsettings.Development.json │ ├── Models │ │ └── ErrorViewModel.cs │ ├── Infrastructure │ │ ├── GraphScopes.cs │ │ └── Constants.cs │ ├── Program.cs │ └── WebApp-OpenIDConnect-DotNet.csproj └── 5-2-Groups │ ├── wwwroot │ ├── js │ │ ├── site.min.js │ │ └── site.js │ ├── lib │ │ ├── bootstrap │ │ │ ├── package.json │ │ │ └── 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 │ ├── favicon.ico │ ├── images │ │ └── CallGroups.png │ └── css │ │ ├── site.min.css │ │ └── site.css │ ├── .gitignore │ ├── Views │ ├── _ViewStart.cshtml │ ├── Home │ │ └── Privacy.cshtml │ ├── _ViewImports.cshtml │ ├── Admin │ │ └── Index.cshtml │ └── Shared │ │ ├── _LoginPartial.cshtml │ │ └── Error.cshtml │ ├── Properties │ ├── serviceDependencies.json │ ├── serviceDependencies.local.json │ └── launchSettings.json │ ├── ReadmeFiles │ ├── topology.png │ └── v2-variations.png │ ├── appsettings.Development.json │ ├── Models │ └── ErrorViewModel.cs │ ├── Infrastructure │ ├── Constants.cs │ ├── AuthorizationPolicies.cs │ └── CacheSettings.cs │ ├── Controllers │ ├── AccountController.cs │ ├── HomeController.cs │ └── AdminController.cs │ └── Program.cs ├── 4-WebApp-your-API ├── 4-1-MyOrg │ ├── Client │ │ ├── wwwroot │ │ │ ├── js │ │ │ │ ├── site.min.js │ │ │ │ └── site.js │ │ │ ├── lib │ │ │ │ ├── bootstrap │ │ │ │ │ ├── package.json │ │ │ │ │ └── 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 │ │ │ ├── favicon.ico │ │ │ └── css │ │ │ │ ├── site.min.css │ │ │ │ └── site.css │ │ ├── Views │ │ │ ├── _ViewStart.cshtml │ │ │ ├── _ViewImports.cshtml │ │ │ ├── Home │ │ │ │ ├── Privacy.cshtml │ │ │ │ └── Index.cshtml │ │ │ ├── Shared │ │ │ │ ├── _LoginPartial.cshtml │ │ │ │ └── Error.cshtml │ │ │ └── TodoList │ │ │ │ ├── Details.cshtml │ │ │ │ └── DeleteItem.cshtml │ │ ├── Properties │ │ │ ├── serviceDependencies.json │ │ │ ├── serviceDependencies.local.json │ │ │ └── launchSettings.json │ │ ├── appsettings.Development.json │ │ ├── Models │ │ │ └── ErrorViewModel.cs │ │ ├── Infrastructure │ │ │ └── Constants.cs │ │ └── Program.cs │ ├── TodoListService │ │ ├── Properties │ │ │ ├── serviceDependencies.json │ │ │ ├── serviceDependencies.local.json │ │ │ └── launchSettings.json │ │ ├── appsettings.Development.json │ │ ├── Models │ │ │ └── TodoItem.cs │ │ ├── TodoListService.csproj │ │ ├── Program.cs │ │ └── appsettings.json │ └── ReadmeFiles │ │ ├── topology.png │ │ └── ReadmeTroubleshooting.md ├── 4-2-B2C │ ├── Client │ │ ├── wwwroot │ │ │ ├── js │ │ │ │ ├── site.min.js │ │ │ │ └── site.js │ │ │ ├── lib │ │ │ │ ├── bootstrap │ │ │ │ │ ├── package.json │ │ │ │ │ └── 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 │ │ │ ├── favicon.ico │ │ │ └── css │ │ │ │ ├── site.min.css │ │ │ │ └── site.css │ │ ├── Views │ │ │ ├── _ViewStart.cshtml │ │ │ ├── _ViewImports.cshtml │ │ │ ├── Home │ │ │ │ ├── Privacy.cshtml │ │ │ │ └── Index.cshtml │ │ │ ├── TodoList │ │ │ │ ├── Details.cshtml │ │ │ │ ├── Create.cshtml │ │ │ │ └── Delete.cshtml │ │ │ └── Shared │ │ │ │ ├── _LoginPartial.cshtml │ │ │ │ └── Error.cshtml │ │ ├── Properties │ │ │ ├── serviceDependencies.json │ │ │ ├── serviceDependencies.local.json │ │ │ └── launchSettings.json │ │ ├── appsettings.Development.json │ │ ├── Models │ │ │ └── ErrorViewModel.cs │ │ └── Program.cs │ ├── TodoListService │ │ ├── Properties │ │ │ ├── serviceDependencies.json │ │ │ ├── serviceDependencies.local.json │ │ │ └── launchSettings.json │ │ ├── appsettings.Development.json │ │ ├── Models │ │ │ └── TodoItem.cs │ │ ├── TodoListService.csproj │ │ ├── appsettings.json │ │ └── Program.cs │ └── ReadmeFiles │ │ └── topology.png └── 4-3-AnyOrg │ ├── ToDoListClient │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── _ViewImports.cshtml │ │ ├── Home │ │ │ ├── Privacy.cshtml │ │ │ └── Index.cshtml │ │ ├── Shared │ │ │ ├── _ValidationScriptsPartial.cshtml │ │ │ ├── _LoginPartial.cshtml │ │ │ └── Error.cshtml │ │ └── ToDoList │ │ │ └── Delete.cshtml │ ├── wwwroot │ │ ├── lib │ │ │ ├── bootstrap │ │ │ │ └── package.json │ │ │ └── jquery-validation-unobtrusive │ │ │ │ └── LICENSE.txt │ │ ├── favicon.ico │ │ └── js │ │ │ └── site.js │ ├── appsettings.Development.json │ ├── Models │ │ ├── ErrorViewModel.cs │ │ └── ToDoItem.cs │ ├── Utils │ │ └── WebApiMsalUiRequiredException.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Services │ │ └── IToDoListService.cs │ ├── ToDoListClient.csproj │ └── Program.cs │ ├── ReadmeFiles │ ├── topology.png │ ├── AdminConsentBtn.png │ ├── Home_Tenant_SP.png │ ├── admin_consent_api.png │ ├── admin_consent_app.png │ ├── admin_redirect_api.png │ ├── admin_redirect_app.png │ └── Home_Tenant_SP_Delete.png │ └── TodoListService │ ├── appsettings.Development.json │ ├── Models │ ├── TodoContext.cs │ └── TodoItem.cs │ ├── Extensions │ └── QueriesExtensions.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ └── appsettings.json ├── 2-WebApp-graph-user ├── 2-6-BFF-Proxy │ ├── ClientApp │ │ ├── .env │ │ ├── .env.development │ │ ├── public │ │ │ ├── favicon.ico │ │ │ └── manifest.json │ │ ├── src │ │ │ ├── custom.css │ │ │ ├── components │ │ │ │ ├── NavMenu.css │ │ │ │ └── Layout.js │ │ │ ├── reportWebVitals.js │ │ │ ├── App.test.js │ │ │ ├── setupProxy.js │ │ │ └── App.js │ │ └── .gitignore │ ├── Pages │ │ ├── _ViewImports.cshtml │ │ ├── Error.cshtml.cs │ │ └── Error.cshtml │ ├── ReadmeFiles │ │ ├── sequence.png │ │ └── screenshot.png │ ├── appsettings.Development.json │ └── Properties │ │ └── launchSettings.json ├── 2-1-Call-MSGraph │ ├── .gitignore │ ├── ReadmeFiles │ │ ├── AboutTheCode.md │ │ ├── sign-in.png │ │ ├── v2-variations.png │ │ └── Overview.md │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── _ViewImports.cshtml │ │ ├── Home │ │ │ ├── Privacy.cshtml │ │ │ └── Index.cshtml │ │ └── Shared │ │ │ ├── _ValidationScriptsPartial.cshtml │ │ │ ├── _LoginPartial.cshtml │ │ │ └── Error.cshtml │ ├── wwwroot │ │ ├── lib │ │ │ ├── bootstrap │ │ │ │ └── package.json │ │ │ └── jquery-validation-unobtrusive │ │ │ │ └── LICENSE.txt │ │ ├── favicon.ico │ │ └── js │ │ │ └── site.js │ ├── appsettings.Development.json │ ├── Models │ │ └── ErrorViewModel.cs │ ├── WebApp-OpenIDConnect-DotNet-graph.csproj │ ├── Program.cs │ └── Properties │ │ └── launchSettings.json ├── 2-2-TokenCache │ ├── .gitignore │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── _ViewImports.cshtml │ │ ├── Home │ │ │ ├── Privacy.cshtml │ │ │ └── Index.cshtml │ │ └── Shared │ │ │ ├── _ValidationScriptsPartial.cshtml │ │ │ ├── _LoginPartial.cshtml │ │ │ └── Error.cshtml │ ├── Properties │ │ ├── serviceDependencies.json │ │ ├── serviceDependencies.local.json │ │ └── launchSettings.json │ ├── wwwroot │ │ ├── lib │ │ │ ├── bootstrap │ │ │ │ └── package.json │ │ │ └── jquery-validation-unobtrusive │ │ │ │ └── LICENSE.txt │ │ ├── favicon.ico │ │ └── js │ │ │ └── site.js │ ├── ReadmeFiles │ │ ├── sign-in.png │ │ └── v2-variations.png │ ├── appsettings.Development.json │ ├── Models │ │ └── ErrorViewModel.cs │ └── Program.cs ├── 2-3-Multi-Tenant │ ├── .gitignore │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── _ViewImports.cshtml │ │ ├── Home │ │ │ ├── Privacy.cshtml │ │ │ └── UnauthorizedTenant.cshtml │ │ └── Shared │ │ │ ├── _ValidationScriptsPartial.cshtml │ │ │ ├── Error.cshtml │ │ │ └── _LoginPartial.cshtml │ ├── wwwroot │ │ ├── lib │ │ │ ├── bootstrap │ │ │ │ └── package.json │ │ │ └── jquery-validation-unobtrusive │ │ │ │ └── LICENSE.txt │ │ ├── favicon.ico │ │ └── js │ │ │ └── site.js │ ├── ReadmeFiles │ │ ├── Sign-in.png │ │ ├── topology.png │ │ ├── todo-edit.png │ │ ├── v2-variations.png │ │ ├── admin-approval.png │ │ └── unauthorized-tenant.png │ ├── Utils │ │ └── GraphScope.cs │ ├── appsettings.Development.json │ ├── Models │ │ ├── ErrorViewModel.cs │ │ └── TodoItem.cs │ ├── DAL │ │ └── SampleDbContext.cs │ └── Properties │ │ └── launchSettings.json ├── 2-4-Sovereign-Call-MSGraph │ ├── .gitignore │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── _ViewImports.cshtml │ │ ├── Home │ │ │ ├── Privacy.cshtml │ │ │ └── Index.cshtml │ │ └── Shared │ │ │ ├── _ValidationScriptsPartial.cshtml │ │ │ ├── _LoginPartial.cshtml │ │ │ └── Error.cshtml │ ├── wwwroot │ │ ├── lib │ │ │ ├── bootstrap │ │ │ │ └── package.json │ │ │ └── jquery-validation-unobtrusive │ │ │ │ └── LICENSE.txt │ │ ├── favicon.ico │ │ └── js │ │ │ └── site.js │ ├── ReadmeFiles │ │ ├── sign-in.png │ │ └── v2-variations.png │ ├── appsettings.Development.json │ ├── Models │ │ └── ErrorViewModel.cs │ ├── Program.cs │ └── Properties │ │ └── launchSettings.json └── 2-5-HybridFlow │ ├── Views │ ├── _ViewStart.cshtml │ ├── _ViewImports.cshtml │ ├── Home │ │ └── Privacy.cshtml │ └── Shared │ │ ├── _ValidationScriptsPartial.cshtml │ │ └── Error.cshtml │ ├── wwwroot │ ├── favicon.ico │ ├── css │ │ └── site.css │ └── lib │ │ └── jquery-validation-unobtrusive │ │ └── LICENSE.txt │ ├── ReadmeFiles │ ├── topology.png │ ├── ReadmeTroubleshooting.md │ ├── ReadmeNextSteps.md │ ├── ReadmeContributing.md │ └── ReadmePrerequirements.md │ ├── appsettings.Development.json │ ├── Models │ └── ErrorViewModel.cs │ ├── 2-5-HybridFlow.csproj │ └── Properties │ └── launchSettings.json ├── UiTests ├── PlaywrightTraces │ └── .gitignore ├── AnyOrgOrPersonalUiTest │ └── appsettings.json └── HybridFlowUiTest │ └── appsettings.json ├── ReadmeFiles ├── sign-in-audiences.png ├── screenshot-overview.png ├── screenshot-authentication.png ├── screenshot-register-app.png └── screenshot-new-registration.png ├── CHANGELOG.md └── .github ├── CODE_OF_CONDUCT.md ├── ISSUE_TEMPLATE ├── documentation.md └── feature_request.md ├── dependabot.yml └── workflows └── dotnet.yml /1-WebApp-OIDC/1-5-B2C/Placeholder.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-1-MyOrg/.gitignore: -------------------------------------------------------------------------------- 1 | ./vs 2 | ./obj 3 | ./bin -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/.gitignore: -------------------------------------------------------------------------------- 1 | ./vs 2 | ./obj 3 | ./bin -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/.gitignore: -------------------------------------------------------------------------------- 1 | ./vs 2 | ./obj 3 | ./bin -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-6-BFF-Proxy/ClientApp/.env: -------------------------------------------------------------------------------- 1 | BROWSER=none 2 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/.gitignore: -------------------------------------------------------------------------------- 1 | ./vs 2 | ./obj 3 | ./bin -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/ReadmeFiles/AboutTheCode.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/.gitignore: -------------------------------------------------------------------------------- 1 | ./vs 2 | ./obj 3 | ./bin -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/.gitignore: -------------------------------------------------------------------------------- 1 | ./vs 2 | ./obj 3 | ./bin -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/.gitignore: -------------------------------------------------------------------------------- 1 | ./vs 2 | ./obj 3 | ./bin -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-1-MyOrg/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-6-BFF-Proxy/ClientApp/.env.development: -------------------------------------------------------------------------------- 1 | PORT=44495 2 | HTTPS=true 3 | 4 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-5-HybridFlow/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-1-MyOrg/Properties/serviceDependencies.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "secrets1": { 4 | "type": "secrets" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/Properties/serviceDependencies.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "secrets1": { 4 | "type": "secrets" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Properties/serviceDependencies.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "secrets1": { 4 | "type": "secrets" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/Properties/serviceDependencies.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "secrets1": { 4 | "type": "secrets" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/Properties/serviceDependencies.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "secrets1": { 4 | "type": "secrets" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /UiTests/PlaywrightTraces/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore all files in this directory, which is needed for PR pipeline test traces 2 | * 3 | # Except this file 4 | !.gitignore -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/Properties/serviceDependencies.local.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "secrets1": { 4 | "type": "secrets.user" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/wwwroot/lib/bootstrap/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "markdown-it": ">=12.3.2", 4 | "shelljs": ">=0.8.5" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Properties/serviceDependencies.local.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "secrets1": { 4 | "type": "secrets.user" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Views/Home/Blob.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Blob"; 3 | } 4 | 5 |
Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/ReadmeFiles/topology.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-1-MyOrg/ReadmeFiles/topology.png -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-2-B2C/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/topology.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/topology.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-1-Call-MSGraph/wwwroot/favicon.ico -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-2-TokenCache/wwwroot/favicon.ico -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-3-Multi-Tenant/wwwroot/favicon.ico -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-5-HybridFlow/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-5-HybridFlow/wwwroot/favicon.ico -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/ReadmeFiles/Sign-in-Consent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-1-Roles/ReadmeFiles/Sign-in-Consent.png -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/ReadmeFiles/v2-variations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-1-Roles/ReadmeFiles/v2-variations.png -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/ReadmeFiles/v2-variations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-2-Groups/ReadmeFiles/v2-variations.png -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/wwwroot/images/CallGroups.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-2-Groups/wwwroot/images/CallGroups.png -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [project-title] Changelog 2 | 3 | 4 | # x.y.z (yyyy-mm-dd) 5 | 6 | *Features* 7 | * ... 8 | 9 | *Bug Fixes* 10 | * ... 11 | 12 | *Breaking Changes* 13 | * ... 14 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/ReadmeFiles/sign-in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-2-TokenCache/ReadmeFiles/sign-in.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using WebApp_OpenIDConnect_DotNet 2 | @using WebApp_OpenIDConnect_DotNet.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-6-BFF-Proxy/ReadmeFiles/sequence.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-6-BFF-Proxy/ReadmeFiles/sequence.png -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/ReadmeFiles/sign-in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-1-Call-MSGraph/ReadmeFiles/sign-in.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using WebApp_OpenIDConnect_DotNet_graph 2 | @using WebApp_OpenIDConnect_DotNet_graph.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/Sign-in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/Sign-in.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/topology.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/topology.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-5-HybridFlow/ReadmeFiles/topology.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-5-HybridFlow/ReadmeFiles/topology.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-5-HybridFlow/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-6-BFF-Proxy/ReadmeFiles/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-6-BFF-Proxy/ReadmeFiles/screenshot.png -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/AdminConsentBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/AdminConsentBtn.png -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/Home_Tenant_SP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/Home_Tenant_SP.png -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/wwwroot/images/GetApplications.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-1-Roles/wwwroot/images/GetApplications.png -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/wwwroot/images/Sign-in-Consent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-1-Roles/wwwroot/images/Sign-in-Consent.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/todo-edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/todo-edit.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-6-BFF-Proxy/ClientApp/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-6-BFF-Proxy/ClientApp/public/favicon.ico -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/admin_consent_api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/admin_consent_api.png -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/admin_consent_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/admin_consent_app.png -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/admin_redirect_api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/admin_redirect_api.png -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/admin_redirect_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/admin_redirect_app.png -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/wwwroot/favicon.ico -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/ReadmeFiles/v2-variations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-1-Call-MSGraph/ReadmeFiles/v2-variations.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/ReadmeFiles/v2-variations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-2-TokenCache/ReadmeFiles/v2-variations.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/v2-variations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/v2-variations.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/Utils/GraphScope.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_MultiTenant_v2.Utils 2 | { 3 | public static class GraphScope 4 | { 5 | public const string UserReadAll = "User.Read.All"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/wwwroot/favicon.ico -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/Home_Tenant_SP_Delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-3-AnyOrg/ReadmeFiles/Home_Tenant_SP_Delete.png -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-1-MyOrg/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/admin-approval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/admin-approval.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using WebApp_OpenIDConnect_DotNet 2 | @using WebApp_OpenIDConnect_DotNet.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | @using Microsoft.Extensions.Configuration -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/ReadmeFiles/sign-in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/ReadmeFiles/sign-in.png -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Services/MicrosoftGraph-Rest/WebOptions.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Services.GraphOperations 2 | { 3 | public class WebOptions 4 | { 5 | public string GraphApiUrl { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-1-MyOrg/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/unauthorized-tenant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-3-Multi-Tenant/ReadmeFiles/unauthorized-tenant.png -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/ReadmeFiles/v2-variations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/ReadmeFiles/v2-variations.png -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/TodoListService/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-5-HybridFlow/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "DetailedErrors": true, 3 | "Logging": { 4 | "LogLevel": { 5 | "Default": "Information", 6 | "Microsoft.AspNetCore": "Warning" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/TodoListService/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-5-HybridFlow/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/3-WebApp-multi-APIs/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/3-WebApp-multi-APIs/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/3-WebApp-multi-APIs/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/1-WebApp-OIDC/1-5-B2C/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/1-WebApp-OIDC/1-5-B2C/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/1-WebApp-OIDC/1-5-B2C/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/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 | -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/3-WebApp-multi-APIs/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/TodoListService/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-1-MyOrg/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 | -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/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 | -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/1-WebApp-OIDC/1-5-B2C/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/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 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-1-Roles/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-1-Roles/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-1-Roles/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/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 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-2-Groups/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-2-Groups/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-1-Roles/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-2-Groups/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/5-WebApp-AuthZ/5-2-Groups/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-1-MyOrg/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/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 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/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 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-1-Call-MSGraph/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 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/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 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_MultiTenant_v2.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/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 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-2-B2C/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-2-B2C/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-5-HybridFlow/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string? RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Infrastructure/Constants.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Infrastructure 2 | { 3 | public static class Constants 4 | { 5 | public const string ScopeUserRead = "User.Read"; 6 | public const string BearerAuthorizationScheme = "Bearer"; 7 | } 8 | } -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-2-B2C/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-2-B2C/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/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 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/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 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/HEAD/4-WebApp-your-API/4-1-MyOrg/Client/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace ToDoListClient.Models 2 | { 3 | public class ErrorViewModel 4 | { 5 | public string RequestId { get; set; } 6 | 7 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-5-HybridFlow/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | html { 2 | font-size: 14px; 3 | } 4 | 5 | @media (min-width: 768px) { 6 | html { 7 | font-size: 16px; 8 | } 9 | } 10 | 11 | html { 12 | position: relative; 13 | min-height: 100%; 14 | } 15 | 16 | body { 17 | margin-bottom: 60px; 18 | } -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/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}} -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-6-BFF-Proxy/ClientApp/src/custom.css: -------------------------------------------------------------------------------- 1 | /* Provide sufficient contrast against white background */ 2 | a { 3 | color: #0366d6; 4 | } 5 | 6 | code { 7 | color: #E01A76; 8 | } 9 | 10 | .btn-primary { 11 | color: #fff; 12 | background-color: #1b6ec2; 13 | border-color: #1861ac; 14 | } 15 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-6-BFF-Proxy/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.AspNetCore.SpaProxy": "Information", 7 | "Microsoft.Hosting.Lifetime": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/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}} -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/Infrastructure/Constants.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Infrastructure 2 | { 3 | public static class Constants 4 | { 5 | public const string ScopeUserImpersonation = "user_impersonation"; 6 | public const string BearerAuthorizationScheme = "Bearer"; 7 | } 8 | } -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/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}} -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/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}} -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace _2_1_Call_MSGraph.Models 4 | { 5 | public class ErrorViewModel 6 | { 7 | public string RequestId { get; set; } 8 | 9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/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}} -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/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}} -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Services/ARM/IArmOperations.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | 4 | namespace WebApp_OpenIDConnect_DotNet.Services.Arm 5 | { 6 | public interface IArmOperations 7 | { 8 | Task11 | This page is a placeholder meant to show how you can further restrict pages to members of certain groups such as admin groups. 12 |
13 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/Infrastructure/GraphScopes.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Infrastructure 2 | 3 | { 4 | public static class GraphScopes 5 | { 6 | public const string UserRead = "User.Read"; 7 | public const string UserReadBasicAll = "User.ReadBasic.All"; 8 | public const string DirectoryReadAll = "Directory.Read.All"; 9 | } 10 | } -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/Infrastructure/Constants.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Infrastructure 2 | { 3 | public static class Constants 4 | { 5 | public const string ScopeUserRead = "User.Read"; 6 | 7 | public const string ScopeGroupMemberRead = "GroupMember.Read.All"; 8 | 9 | public const string BearerAuthorizationScheme = "Bearer"; 10 | } 11 | } -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/Utils/WebApiMsalUiRequiredException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace ToDoListClient.Utils 7 | { 8 | public class WebApiMsalUiRequiredException:Exception 9 | { 10 | public WebApiMsalUiRequiredException(string message) : base(message) { } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/TodoListService/Models/TodoItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace TodoListService.Models 7 | { 8 | public class Todo 9 | { 10 | public int Id { get; set; } 11 | 12 | public string Title { get; set; } 13 | 14 | public string Owner { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/Views/Account/AccessDenied.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewData["Title"] = "AccessDenied"; 4 | Layout = "~/Views/Shared/_Layout.cshtml"; 5 | } 6 | 7 || Claim Type | 11 |Claim Value | 12 |
|---|---|
| @claim.Type | 18 |@claim.Value | 19 |
You have signed-in with an user account from a Tenant that hasn't on-boarded this application yet.
7 |Please complete the authorization process via the onboarding process by clicking on the link below.
8 | Take me to the onboarding process -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Microsoft Open Source Code of Conduct 2 | 3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 4 | 5 | Resources: 6 | 7 | - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) 8 | - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) 9 | - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns 10 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-3-Multi-Tenant/DAL/SampleDbContext.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using WebApp_MultiTenant_v2.Models; 3 | 4 | namespace WebApp_MultiTenant_v2.DAL 5 | { 6 | public class SampleDbContext : DbContext 7 | { 8 | public SampleDbContext(DbContextOptions
12 | Request ID: @Model.RequestId
13 |
@TempData["ErrorMessage"]
19 | } 20 | 21 | -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/Services/ARM/ArmSimplifiedDataModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApp_OpenIDConnect_DotNet.Services.Arm 2 | { 3 | ///9 | This sample shows how to build a .NET Core MVC Web app that uses OpenID Connect to sign in users in your organization. It leverages the ASP.NET Core OpenID Connect middleware. 10 |
11 |
--------------------------------------------------------------------------------
/1-WebApp-OIDC/1-5-B2C/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewData["Title"] = "Home Page";
3 | }
4 |
5 | 9 | This sample shows how to build a .NET Core MVC Web app that uses OpenID Connect to sign in users in an Azure AD B2C tenant. It leverages the ASP.NET Core OpenID Connect middleware. 10 |
11 |
--------------------------------------------------------------------------------
/5-WebApp-AuthZ/5-1-Roles/Infrastructure/Constants.cs:
--------------------------------------------------------------------------------
1 | namespace WebApp_OpenIDConnect_DotNet.Infrastructure
2 | {
3 | public static class Constants
4 | {
5 | public const string ScopeUserRead = "User.Read";
6 | public const string ScopeUserReadAll = "User.ReadBasic.All";
7 | public const string BearerAuthorizationScheme = "Bearer";
8 | public const string UserConsentDeclinedErrorMessage = "User declined to consent to access the app";
9 | public const string UserConsentDeclinedError = "AADSTS65004";
10 | }
11 | }
--------------------------------------------------------------------------------
/3-WebApp-multi-APIs/Views/Shared/_LoginPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using Microsoft.Identity.Web
2 | @if (User.Identity.IsAuthenticated)
3 | {
4 |
8 | }
9 | else
10 | {
11 |
14 | }
15 |
--------------------------------------------------------------------------------
/1-WebApp-OIDC/1-5-B2C/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')
--------------------------------------------------------------------------------
/3-WebApp-multi-APIs/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')
--------------------------------------------------------------------------------
/4-WebApp-your-API/4-2-B2C/Client/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "https://localhost:5000/",
7 | "sslPort": 5000
8 | }
9 | },
10 | "profiles": {
11 | "webApp": {
12 | "commandName": "Project",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | },
17 | "applicationUrl": "https://localhost:5000"
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/5-WebApp-AuthZ/5-1-Roles/Views/Shared/_LoginPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using Microsoft.Identity.Web
2 | @if (User.Identity.IsAuthenticated)
3 | {
4 |
8 | }
9 | else
10 | {
11 |
14 | }
15 |
--------------------------------------------------------------------------------
/1-WebApp-OIDC/1-5-B2C/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 | }
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-5-HybridFlow/2-5-HybridFlow.csproj:
--------------------------------------------------------------------------------
1 | | Property | 11 |Value | 12 |
|---|---|
| @user.DisplayName | 20 |@user.UserPrincipalName | 21 |
9 | This sample shows how to secure a Web API built with ASP.NET Core using the Microsoft identity platform .The client uses OpenID Connect to sign in users. It leverages the ASP.NET Core OpenID Connect middleware 10 | and Microsoft.Identity.Web. 11 |
12 |
13 |
--------------------------------------------------------------------------------
/4-WebApp-your-API/4-1-MyOrg/Client/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 |
--------------------------------------------------------------------------------
/5-WebApp-AuthZ/5-1-Roles/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 | }
--------------------------------------------------------------------------------
/5-WebApp-AuthZ/5-2-Groups/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 | }
--------------------------------------------------------------------------------
/4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/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 |
--------------------------------------------------------------------------------
/1-WebApp-OIDC/1-1-MyOrg/Views/Shared/_LoginPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Security.Principal
2 |
3 |
20 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-1-Call-MSGraph/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 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-2-TokenCache/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 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-3-Multi-Tenant/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 |
--------------------------------------------------------------------------------
/4-WebApp-your-API/4-1-MyOrg/Client/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 | }
--------------------------------------------------------------------------------
/4-WebApp-your-API/4-2-B2C/Client/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 | }
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/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 |
--------------------------------------------------------------------------------
/4-WebApp-your-API/4-2-B2C/TodoListService/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "AzureAdB2C": {
3 | "Instance": "https://fabrikamb2c.b2clogin.com",
4 | "ClientId": "90c0fe63-bcf2-44d5-8fb7-b8bbc0b29dc6",
5 | "Domain": "fabrikamb2c.onmicrosoft.com",
6 | "SignedOutCallbackPath": "/signout/B2C_1_susi_reset_v2",
7 | "SignUpSignInPolicyId": "B2C_1_susi_reset_v2"
8 | //"CallbackPath": "/signin/B2C_1_sign_up_in" // defaults to /signin-oidc
9 | },
10 | "Kestrel": {
11 | "Endpoints": {
12 | "Http": {
13 | "Url": "https://localhost:44332"
14 | }
15 | }
16 | },
17 | "Logging": {
18 | "LogLevel": {
19 | "Default": "Warning"
20 | }
21 | },
22 | "AllowedHosts": "*"
23 | }
24 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-2-TokenCache/Views/Shared/_LoginPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Security.Principal
2 |
3 |
20 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-1-Call-MSGraph/Views/Shared/_LoginPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Security.Principal
2 |
3 |
20 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-5-HybridFlow/ReadmeFiles/ReadmeContributing.md:
--------------------------------------------------------------------------------
1 | If you'd like to contribute to this sample, see [CONTRIBUTING.MD](/CONTRIBUTING.md).
2 |
3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
4 |
5 | Feel free to to take part in our [sruvey](https://forms.microsoft.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR73pcsbpbxNJuZCMKN0lURpURFgxTzVOOE5BT1VCWDQ0U1hXT1hITVdCTSQlQCN0PWcu) to provide us with useful information to improve our samples in the future.
6 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project.
4 | title: "[Feature Request] "
5 | labels: enhancement, Feature Request
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...].
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-1-Call-MSGraph/WebApp-OpenIDConnect-DotNet-graph.csproj:
--------------------------------------------------------------------------------
1 | 9 | This sample shows how to build a .NET Core MVC Web app that uses OpenID Connect to sign in users. Users can use personal accounts (including outlook.com, live.com, and others) as well as work and school accounts from any company or organization that has integrated with Azure Active Directory. It leverages the ASP.NET Core OpenID Connect middleware. 10 |
11 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Views/Shared/_LoginPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Security.Principal
2 |
3 |
20 |
--------------------------------------------------------------------------------
/4-WebApp-your-API/4-1-MyOrg/ReadmeFiles/ReadmeTroubleshooting.md:
--------------------------------------------------------------------------------
1 | ## Troubleshooting
2 |
3 | 9 | This sample shows how to secure a Web API built with ASP.NET Core using the Microsoft identity platform (formerly Azure Active Directory for developers).The client uses OpenID Connect to sign in users. It leverages the ASP.NET Core OpenID Connect middleware 10 | and MSAL.NET. 11 |
12 |
13 |
--------------------------------------------------------------------------------
/4-WebApp-your-API/4-2-B2C/Client/Views/TodoList/Details.cshtml:
--------------------------------------------------------------------------------
1 | @model TodoListService.Models.Todo
2 |
3 | @{
4 | ViewData["Title"] = "Details";
5 | }
6 |
7 | 10 | Create New 11 |
12 || 16 | @Html.DisplayFor(model => model.Id) 17 | | 18 |19 | |
|---|---|
| 24 | @Html.DisplayFor(model => model.Owner) 25 | | 26 |27 | @Html.DisplayFor(model => model.Title) 28 | | 29 |
10 | Create New 11 |
12 || 16 | @Html.DisplayFor(model => model.Id) 17 | | 18 |19 | |
|---|---|
| 24 | @Html.DisplayFor(model => model.Owner) 25 | | 26 |27 | @Html.DisplayFor(model => model.Title) 28 | | 29 |
9 | This sample shows how to build a .NET Core MVC Web app that uses OpenID Connect to sign in users. Users can use personal accounts (including outlook.com, live.com, and others) as well as work and school accounts from any company or organization that has integrated with Azure Active Directory. It leverages the ASP.NET Core OpenID Connect middleware. 10 |
11 |
--------------------------------------------------------------------------------
/1-WebApp-OIDC/1-5-B2C/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "AzureAdB2C": {
3 | "Instance": "https://fabrikamb2c.b2clogin.com",
4 | "ClientId": "90c0fe63-bcf2-44d5-8fb7-b8bbc0b29dc6",
5 | "Domain": "fabrikamb2c.onmicrosoft.com",
6 | "SignedOutCallbackPath": "/signout/B2C_1_susi",
7 | "SignUpSignInPolicyId": "b2c_1_susi",
8 | "ResetPasswordPolicyId": "b2c_1_reset",
9 | "EditProfilePolicyId": "b2c_1_edit_profile" // Optional profile editing policy
10 | //"CallbackPath": "/signin/B2C_1_sign_up_in" // defaults to /signin-oidc
11 | },
12 | "Logging": {
13 | "LogLevel": {
14 | "Default": "Information",
15 | "Microsoft": "Warning",
16 | "Microsoft.Hosting.Lifetime": "Information"
17 | }
18 | },
19 | "AllowedHosts": "*"
20 | }
21 |
--------------------------------------------------------------------------------
/3-WebApp-multi-APIs/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewData["Title"] = "Home Page";
3 | }
4 |
5 | 9 | This sample shows how to build a .NET Core MVC Web app that uses OpenID Connect to sign in users. Users can use personal accounts (including outlook.com, live.com, and others) as well as work and school accounts from any company or organization that has integrated with Azure Active Directory. It leverages the ASP.NET Core OpenID Connect middleware 10 | and MSAL.NET. 11 |
12 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-3-Multi-Tenant/Models/TodoItem.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.ComponentModel.DataAnnotations.Schema;
4 |
5 | namespace WebApp_MultiTenant_v2.Models
6 | {
7 | public class TodoItem
8 | {
9 | [Key]
10 | [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
11 | public int Id { get; set; }
12 |
13 | [Required]
14 | public string Text { get; set; }
15 |
16 | [Required]
17 | [DisplayName("User Name")]
18 | public string UserName { get; set; }
19 |
20 | [Required]
21 | [DisplayName("Assigned To")]
22 | public string AssignedTo { get; set; }
23 |
24 | [Required]
25 | public string TenantId { get; set; }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/2-WebApp-graph-user/2-5-HybridFlow/ReadmeFiles/ReadmePrerequirements.md:
--------------------------------------------------------------------------------
1 | * Either [Visual Studio](https://visualstudio.microsoft.com/downloads/) or [Visual Studio Code](https://code.visualstudio.com/download) and [.NET Core SDK](https://www.microsoft.com/net/learn/get-started)
2 | * An **Microsoft Entra ID** tenant. For more information, see: [How to get a Microsoft Entra tenant](https://docs.microsoft.com/azure/active-directory/develop/test-setup-environment#get-a-test-tenant)
3 | * A user account in your **Microsoft Entra ID** tenant. This sample will not work with a **personal Microsoft account**. If you're signed in to the [Microsoft Entra admin center](https://entra.microsoft.com) with a personal Microsoft account and have not created a user account in your directory before, you will need to create one before proceeding.
4 |
--------------------------------------------------------------------------------
/3-WebApp-multi-APIs/Views/Home/Tenants.cshtml:
--------------------------------------------------------------------------------
1 | @using System
2 | @using System.Collections.Generic
3 | @{
4 | ViewData["Title"] = "Tenants";
5 | IDictionary| Tenant ID | 17 |Tenant name | 18 |
|---|---|
| @tenant.Key | 24 |@tenant.Value | 25 |
Learn about building Web apps with ASP.NET Core.
8 |11 |
14 | Integrate an ASP.NET Core web app with the Microsoft Identity platform and calls Microsoft Graph API for the signed-in user
15 |11 | To enable the users on your tenant to access this application and the web API, 12 | you need to sign-in as an admin and consent for the required permissions. This makes the this app and the Web API available to all users in the tenant. 13 |
14 | 15 | Consent as Admin 16 | 17 |18 | Note that you'd be asked to consent twice, once for the client app and then again for the Web API 19 |
20 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-1-MyOrg/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /1-WebApp-OIDC/1-5-B2C/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-6-BFF-Proxy/Pages/Error.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model ErrorModel 3 | @{ 4 | ViewData["Title"] = "Error"; 5 | } 6 | 7 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to the Development environment displays detailed information about the error that occurred. 20 |
21 |22 | The Development environment shouldn't be enabled for deployed applications. 23 | It can result in displaying sensitive information from exceptions to end users. 24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 25 | and restarting the app. 26 |
27 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-5-HybridFlow/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/Views/TodoList/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model TodoListService.Models.Todo 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/TodoListService/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "AzureAd": { 3 | "Instance": "https://login.microsoftonline.com/", 4 | "Domain": "[Enter the domain of your tenant, e.g. contoso.onmicrosoft.com]", 5 | "TenantId": "common", 6 | "ClientId": "[Enter the Client Id (Application ID obtained from the Azure portal), e.g. ba74781c2-53c2-442a-97c2-3d60re42f403]", 7 | "ClientSecret": "[Copy the client secret added to the app from the Azure portal]", 8 | "ClientCapabilities": [ "cp1" ], 9 | "AllowedTenants": [ "Add the tenant ids of the tenants from where you want the client applications to call your Web API" ] 10 | }, 11 | "https_port": 44351, 12 | "Logging": { 13 | "LogLevel": { 14 | "Default": "Information", 15 | "Microsoft": "Warning", 16 | "Microsoft.Hosting.Lifetime": "Information" 17 | } 18 | }, 19 | "DownstreamApi": { 20 | "GraphApiUrl": "https://graph.microsoft.com/v1.0", 21 | "Scopes": "user.read.all" 22 | }, 23 | "AllowedHosts": "*" 24 | } 25 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-2-TokenCache/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /3-WebApp-multi-APIs/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 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/Views/ToDoList/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model ToDoListClient.Models.ToDoItem 2 | 3 | @{ 4 | ViewData["Title"] = "Delete"; 5 | } 6 | 7 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-1-Roles/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 | -------------------------------------------------------------------------------- /5-WebApp-AuthZ/5-2-Groups/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 | -------------------------------------------------------------------------------- /2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-1-MyOrg/Client/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 | -------------------------------------------------------------------------------- /4-WebApp-your-API/4-2-B2C/Client/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 | --------------------------------------------------------------------------------