From fee05d63beedf3e940a7cffadfe7a9a02d9eecee Mon Sep 17 00:00:00 2001 From: John Barrett <40014477+274188A@users.noreply.github.com> Date: Tue, 15 Dec 2020 08:40:53 +0800 Subject: [PATCH 1/2] Cookie Scheme arg is optional but not not nullable removed cookie scheme null fixed spelling --- .../POST.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/en/Community-Articles/2020-04-27-Use-Azure-Active-Directory-Authentication-for-MVC-Razor-Page-Applications/POST.md b/docs/en/Community-Articles/2020-04-27-Use-Azure-Active-Directory-Authentication-for-MVC-Razor-Page-Applications/POST.md index 417fa7da3e..f8e5f6dd43 100644 --- a/docs/en/Community-Articles/2020-04-27-Use-Azure-Active-Directory-Authentication-for-MVC-Razor-Page-Applications/POST.md +++ b/docs/en/Community-Articles/2020-04-27-Use-Azure-Active-Directory-Authentication-for-MVC-Razor-Page-Applications/POST.md @@ -136,7 +136,7 @@ And that's it, integration is completed. Keep on mind that you can connect any o ## 3. AddMicrosoftIdentityWebAppAuthentication -With .Net 5.0, AzureAd is marked [obsolute](https://github.com/dotnet/aspnetcore/issues/25807) and will not be supported in the near future. However its expanded functionality is available in [microsoft-identity-web](https://github.com/AzureAD/microsoft-identity-web/wiki) packages. +With .Net 5.0, AzureAd is marked [obsolete](https://github.com/dotnet/aspnetcore/issues/25807) and will not be supported in the near future. However its expanded functionality is available in [microsoft-identity-web](https://github.com/AzureAD/microsoft-identity-web/wiki) packages. Add (or replace with) the new nuget package Microsoft.Identity.Web nuget package](https://www.nuget.org/packages/Microsoft.Identity.Web/). @@ -158,8 +158,7 @@ private void ConfigureAuthentication(ServiceConfigurationContext context, IConfi context.Services.AddMicrosoftIdentityWebAppAuthentication( configuration: configuration, configSectionName: "AzureAd", - openIdConnectScheme:"AzureAD", - cookieScheme:null); + openIdConnectScheme:"AzureAD"); } ```` From a1a259fc1ce4d92ec310c7c7249de8ccb2f3e49c Mon Sep 17 00:00:00 2001 From: John Barrett <40014477+274188A@users.noreply.github.com> Date: Thu, 17 Dec 2020 07:58:08 +0800 Subject: [PATCH 2/2] revert change to cookie scheme argument being removed (needs to be set to null) --- .../POST.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/Community-Articles/2020-04-27-Use-Azure-Active-Directory-Authentication-for-MVC-Razor-Page-Applications/POST.md b/docs/en/Community-Articles/2020-04-27-Use-Azure-Active-Directory-Authentication-for-MVC-Razor-Page-Applications/POST.md index f8e5f6dd43..146d250d1f 100644 --- a/docs/en/Community-Articles/2020-04-27-Use-Azure-Active-Directory-Authentication-for-MVC-Razor-Page-Applications/POST.md +++ b/docs/en/Community-Articles/2020-04-27-Use-Azure-Active-Directory-Authentication-for-MVC-Razor-Page-Applications/POST.md @@ -158,7 +158,8 @@ private void ConfigureAuthentication(ServiceConfigurationContext context, IConfi context.Services.AddMicrosoftIdentityWebAppAuthentication( configuration: configuration, configSectionName: "AzureAd", - openIdConnectScheme:"AzureAD"); + openIdConnectScheme:"AzureAD", + cookieScheme:null); } ````