diff --git a/1-WebApp-OIDC/1-1-MyOrg/WebApp-OpenIDConnect-DotNet.csproj b/1-WebApp-OIDC/1-1-MyOrg/WebApp-OpenIDConnect-DotNet.csproj index 849e04d4..339a5e16 100644 --- a/1-WebApp-OIDC/1-1-MyOrg/WebApp-OpenIDConnect-DotNet.csproj +++ b/1-WebApp-OIDC/1-1-MyOrg/WebApp-OpenIDConnect-DotNet.csproj @@ -25,8 +25,8 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/1-WebApp-OIDC/1-2-AnyOrg/WebApp-OpenIDConnect-DotNet.csproj b/1-WebApp-OIDC/1-2-AnyOrg/WebApp-OpenIDConnect-DotNet.csproj index dc7155b5..2d5cb12a 100644 --- a/1-WebApp-OIDC/1-2-AnyOrg/WebApp-OpenIDConnect-DotNet.csproj +++ b/1-WebApp-OIDC/1-2-AnyOrg/WebApp-OpenIDConnect-DotNet.csproj @@ -18,8 +18,8 @@ - - + + diff --git a/1-WebApp-OIDC/1-3-AnyOrgOrPersonal/WebApp-OpenIDConnect-DotNet.csproj b/1-WebApp-OIDC/1-3-AnyOrgOrPersonal/WebApp-OpenIDConnect-DotNet.csproj index dc7155b5..2d5cb12a 100644 --- a/1-WebApp-OIDC/1-3-AnyOrgOrPersonal/WebApp-OpenIDConnect-DotNet.csproj +++ b/1-WebApp-OIDC/1-3-AnyOrgOrPersonal/WebApp-OpenIDConnect-DotNet.csproj @@ -18,8 +18,8 @@ - - + + diff --git a/1-WebApp-OIDC/1-4-Sovereign/WebApp-OpenIDConnect-DotNet.csproj b/1-WebApp-OIDC/1-4-Sovereign/WebApp-OpenIDConnect-DotNet.csproj index dc7155b5..2d5cb12a 100644 --- a/1-WebApp-OIDC/1-4-Sovereign/WebApp-OpenIDConnect-DotNet.csproj +++ b/1-WebApp-OIDC/1-4-Sovereign/WebApp-OpenIDConnect-DotNet.csproj @@ -18,8 +18,8 @@ - - + + diff --git a/1-WebApp-OIDC/1-5-B2C/WebApp-OpenIDConnect-DotNet.csproj b/1-WebApp-OIDC/1-5-B2C/WebApp-OpenIDConnect-DotNet.csproj index dc7155b5..2d5cb12a 100644 --- a/1-WebApp-OIDC/1-5-B2C/WebApp-OpenIDConnect-DotNet.csproj +++ b/1-WebApp-OIDC/1-5-B2C/WebApp-OpenIDConnect-DotNet.csproj @@ -18,8 +18,8 @@ - - + + diff --git a/2-WebApp-graph-user/2-1-Call-MSGraph/WebApp-OpenIDConnect-DotNet.csproj b/2-WebApp-graph-user/2-1-Call-MSGraph/WebApp-OpenIDConnect-DotNet.csproj index 59786b50..f607ebe6 100644 --- a/2-WebApp-graph-user/2-1-Call-MSGraph/WebApp-OpenIDConnect-DotNet.csproj +++ b/2-WebApp-graph-user/2-1-Call-MSGraph/WebApp-OpenIDConnect-DotNet.csproj @@ -18,9 +18,9 @@ - - - + + + diff --git a/2-WebApp-graph-user/2-2-TokenCache/WebApp-OpenIDConnect-DotNet.csproj b/2-WebApp-graph-user/2-2-TokenCache/WebApp-OpenIDConnect-DotNet.csproj index d52fa493..0a44440c 100644 --- a/2-WebApp-graph-user/2-2-TokenCache/WebApp-OpenIDConnect-DotNet.csproj +++ b/2-WebApp-graph-user/2-2-TokenCache/WebApp-OpenIDConnect-DotNet.csproj @@ -20,9 +20,9 @@ - - - + + + diff --git a/2-WebApp-graph-user/2-3-Multi-Tenant/WebApp-OpenIDConnect-DotNet.csproj b/2-WebApp-graph-user/2-3-Multi-Tenant/WebApp-OpenIDConnect-DotNet.csproj index 5d2b14a8..7fc00738 100644 --- a/2-WebApp-graph-user/2-3-Multi-Tenant/WebApp-OpenIDConnect-DotNet.csproj +++ b/2-WebApp-graph-user/2-3-Multi-Tenant/WebApp-OpenIDConnect-DotNet.csproj @@ -21,9 +21,9 @@ - - - + + + diff --git a/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Controllers/HomeController.cs b/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Controllers/HomeController.cs index f55378a6..a8c480a1 100644 --- a/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Controllers/HomeController.cs +++ b/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Controllers/HomeController.cs @@ -3,9 +3,9 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Identity.Web; -using WebApp_OpenIDConnect_DotNet.Infrastructure; using WebApp_OpenIDConnect_DotNet.Models; using WebApp_OpenIDConnect_DotNet.Services.GraphOperations; +using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants; namespace WebApp_OpenIDConnect_DotNet.Controllers { @@ -27,7 +27,7 @@ public IActionResult Index() return View(); } - [AuthorizeForScopes(Scopes = new[] {Constants.ScopeUserRead})] + [AuthorizeForScopes(Scopes = new[] { Constants.ScopeUserRead})] public async Task Profile() { var accessToken = diff --git a/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Startup.cs b/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Startup.cs index 4c0abf70..d2adac17 100644 --- a/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Startup.cs +++ b/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Startup.cs @@ -9,12 +9,11 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Identity.Web; -using Microsoft.Identity.Web.TokenCacheProviders.InMemory; -using WebApp_OpenIDConnect_DotNet.Infrastructure; using WebApp_OpenIDConnect_DotNet.Services.GraphOperations; using Microsoft.Extensions.Hosting; using Microsoft.Identity.Web.UI; using Microsoft.AspNetCore.Authentication.OpenIdConnect; +using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants; namespace WebApp_OpenIDConnect_DotNet { diff --git a/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/WebApp-OpenIDConnect-DotNet.csproj b/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/WebApp-OpenIDConnect-DotNet.csproj index dc7155b5..2d5cb12a 100644 --- a/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/WebApp-OpenIDConnect-DotNet.csproj +++ b/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/WebApp-OpenIDConnect-DotNet.csproj @@ -18,8 +18,8 @@ - - + + diff --git a/3-WebApp-multi-APIs/Controllers/HomeController.cs b/3-WebApp-multi-APIs/Controllers/HomeController.cs index 683a2190..18b6d8fa 100644 --- a/3-WebApp-multi-APIs/Controllers/HomeController.cs +++ b/3-WebApp-multi-APIs/Controllers/HomeController.cs @@ -4,10 +4,9 @@ using Microsoft.WindowsAzure.Storage.Auth; using Microsoft.WindowsAzure.Storage.Blob; using System; -using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; -using WebApp_OpenIDConnect_DotNet.Infrastructure; +using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants; using WebApp_OpenIDConnect_DotNet.Models; using WebApp_OpenIDConnect_DotNet.Services.Arm; using WebApp_OpenIDConnect_DotNet.Services.GraphOperations; diff --git a/3-WebApp-multi-APIs/Services/MicrosoftGraph-Rest/IGraphApiOperations.cs b/3-WebApp-multi-APIs/Services/MicrosoftGraph-Rest/IGraphApiOperations.cs index 0d7a95f5..b3478873 100644 --- a/3-WebApp-multi-APIs/Services/MicrosoftGraph-Rest/IGraphApiOperations.cs +++ b/3-WebApp-multi-APIs/Services/MicrosoftGraph-Rest/IGraphApiOperations.cs @@ -1,5 +1,3 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.Identity.Web; using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/3-WebApp-multi-APIs/Startup.cs b/3-WebApp-multi-APIs/Startup.cs index e2bead6f..06d4b1cd 100644 --- a/3-WebApp-multi-APIs/Startup.cs +++ b/3-WebApp-multi-APIs/Startup.cs @@ -9,13 +9,11 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Identity.Web; -using Microsoft.Identity.Web.TokenCacheProviders.InMemory; -using WebApp_OpenIDConnect_DotNet.Infrastructure; using WebApp_OpenIDConnect_DotNet.Services.Arm; using WebApp_OpenIDConnect_DotNet.Services.GraphOperations; using Microsoft.Extensions.Hosting; -using Microsoft.AspNetCore.Authentication.OpenIdConnect; using Microsoft.Identity.Web.UI; +using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants; namespace WebApp_OpenIDConnect_DotNet { diff --git a/3-WebApp-multi-APIs/WebApp-OpenIDConnect-DotNet.csproj b/3-WebApp-multi-APIs/WebApp-OpenIDConnect-DotNet.csproj index 58c3e1be..d3cf752e 100644 --- a/3-WebApp-multi-APIs/WebApp-OpenIDConnect-DotNet.csproj +++ b/3-WebApp-multi-APIs/WebApp-OpenIDConnect-DotNet.csproj @@ -18,8 +18,8 @@ - - + + diff --git a/4-WebApp-your-API/4-1-MyOrg/Client/TodoListClient.csproj b/4-WebApp-your-API/4-1-MyOrg/Client/TodoListClient.csproj index ced7db3d..00e0b092 100644 --- a/4-WebApp-your-API/4-1-MyOrg/Client/TodoListClient.csproj +++ b/4-WebApp-your-API/4-1-MyOrg/Client/TodoListClient.csproj @@ -23,8 +23,8 @@ - - + + diff --git a/4-WebApp-your-API/4-1-MyOrg/TodoListService/TodoListService.csproj b/4-WebApp-your-API/4-1-MyOrg/TodoListService/TodoListService.csproj index 490f9834..b794e454 100644 --- a/4-WebApp-your-API/4-1-MyOrg/TodoListService/TodoListService.csproj +++ b/4-WebApp-your-API/4-1-MyOrg/TodoListService/TodoListService.csproj @@ -7,7 +7,7 @@ - + diff --git a/4-WebApp-your-API/4-2-B2C/Client/TodoListClient.csproj b/4-WebApp-your-API/4-2-B2C/Client/TodoListClient.csproj index 03bec84e..a52cb17d 100644 --- a/4-WebApp-your-API/4-2-B2C/Client/TodoListClient.csproj +++ b/4-WebApp-your-API/4-2-B2C/Client/TodoListClient.csproj @@ -23,8 +23,8 @@ - - + + diff --git a/4-WebApp-your-API/4-2-B2C/TodoListService/TodoListService.csproj b/4-WebApp-your-API/4-2-B2C/TodoListService/TodoListService.csproj index 490f9834..b794e454 100644 --- a/4-WebApp-your-API/4-2-B2C/TodoListService/TodoListService.csproj +++ b/4-WebApp-your-API/4-2-B2C/TodoListService/TodoListService.csproj @@ -7,7 +7,7 @@ - + diff --git a/4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/ToDoListClient.csproj b/4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/ToDoListClient.csproj index eab497ef..1fa69fa8 100644 --- a/4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/ToDoListClient.csproj +++ b/4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/ToDoListClient.csproj @@ -5,9 +5,9 @@ - - - + + + diff --git a/4-WebApp-your-API/4-3-AnyOrg/TodoListService/ToDoListService.csproj b/4-WebApp-your-API/4-3-AnyOrg/TodoListService/ToDoListService.csproj index 5662eadd..053b229f 100644 --- a/4-WebApp-your-API/4-3-AnyOrg/TodoListService/ToDoListService.csproj +++ b/4-WebApp-your-API/4-3-AnyOrg/TodoListService/ToDoListService.csproj @@ -15,8 +15,8 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/5-WebApp-AuthZ/5-1-Roles/Controllers/HomeController.cs b/5-WebApp-AuthZ/5-1-Roles/Controllers/HomeController.cs index 1755acca..f139c948 100644 --- a/5-WebApp-AuthZ/5-1-Roles/Controllers/HomeController.cs +++ b/5-WebApp-AuthZ/5-1-Roles/Controllers/HomeController.cs @@ -10,6 +10,7 @@ using WebApp_OpenIDConnect_DotNet.Models; using WebApp_OpenIDConnect_DotNet.Services; using Graph = Microsoft.Graph; +using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants; namespace WebApp_OpenIDConnect_DotNet.Controllers { diff --git a/5-WebApp-AuthZ/5-1-Roles/WebApp-OpenIDConnect-DotNet.csproj b/5-WebApp-AuthZ/5-1-Roles/WebApp-OpenIDConnect-DotNet.csproj index 69f9af24..78c7684d 100644 --- a/5-WebApp-AuthZ/5-1-Roles/WebApp-OpenIDConnect-DotNet.csproj +++ b/5-WebApp-AuthZ/5-1-Roles/WebApp-OpenIDConnect-DotNet.csproj @@ -18,9 +18,9 @@ - - - + + + diff --git a/5-WebApp-AuthZ/5-2-Groups/Startup.cs b/5-WebApp-AuthZ/5-2-Groups/Startup.cs index 07aa82ab..57004430 100644 --- a/5-WebApp-AuthZ/5-2-Groups/Startup.cs +++ b/5-WebApp-AuthZ/5-2-Groups/Startup.cs @@ -12,6 +12,7 @@ using System; using WebApp_OpenIDConnect_DotNet.Infrastructure; using WebApp_OpenIDConnect_DotNet.Services; +using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants; namespace WebApp_OpenIDConnect_DotNet { diff --git a/5-WebApp-AuthZ/5-2-Groups/WebApp-OpenIDConnect-DotNet.csproj b/5-WebApp-AuthZ/5-2-Groups/WebApp-OpenIDConnect-DotNet.csproj index cfe17f3a..b74fcc5a 100644 --- a/5-WebApp-AuthZ/5-2-Groups/WebApp-OpenIDConnect-DotNet.csproj +++ b/5-WebApp-AuthZ/5-2-Groups/WebApp-OpenIDConnect-DotNet.csproj @@ -19,9 +19,9 @@ - - - + + +