From 7f2a471675bf3b4e4ac89e5d1d3f3196434b52f8 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 4 Nov 2022 15:59:02 -1000 Subject: [PATCH 1/5] What's new defaut scheme --- aspnetcore/release-notes/aspnetcore-7.0.md | 4 ++++ aspnetcore/security/authentication/index.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/aspnetcore/release-notes/aspnetcore-7.0.md b/aspnetcore/release-notes/aspnetcore-7.0.md index d81f0894ee56..9d1ca68522c9 100644 --- a/aspnetcore/release-notes/aspnetcore-7.0.md +++ b/aspnetcore/release-notes/aspnetcore-7.0.md @@ -15,6 +15,10 @@ This article highlights the most significant changes in ASP.NET Core 7.0 with li The `Microsoft.AspNetCore.RateLimiting` middleware provides rate limiting middleware. Apps configure rate limiting policies and then attach the policies to endpoints. For more information, see . +## Authentication uses single scheme as DefaultScheme + +As part of the work to simplify authentication, when there is only a single authentication scheme registered, it's automatically used as the . For more information, see [DefaultScheme](xref:security/authentication/index#defaultscheme) + ## MVC and Razor pages ### Support for nullable models in MVC views and Razor Pages diff --git a/aspnetcore/security/authentication/index.md b/aspnetcore/security/authentication/index.md index b40c947fa65d..e55885a0f706 100644 --- a/aspnetcore/security/authentication/index.md +++ b/aspnetcore/security/authentication/index.md @@ -59,8 +59,8 @@ When there is only a single authentication scheme registered, it becomes the def When there is only a single authentication scheme registered, the single authentication scheme: -* Is automatically used as the `DefaultScheme`. -* Eliminates the need to specify the `DefaultScheme` in `AddAuthentication` or . +* Is automatically used as the . +* Eliminates the need to specify the `DefaultScheme` in or . To disable automatically using the single authentication scheme as the `DefaultScheme`, call `AppContext.SetSwitch("Microsoft.AspNetCore.Authentication.SuppressAutoDefaultScheme")`. From 56ec952bc0ab5e5631670022fbd8aad23356eade Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 4 Nov 2022 16:01:06 -1000 Subject: [PATCH 2/5] What's new defaut scheme --- aspnetcore/release-notes/aspnetcore-7.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/release-notes/aspnetcore-7.0.md b/aspnetcore/release-notes/aspnetcore-7.0.md index 9d1ca68522c9..b8be40c745da 100644 --- a/aspnetcore/release-notes/aspnetcore-7.0.md +++ b/aspnetcore/release-notes/aspnetcore-7.0.md @@ -17,7 +17,7 @@ The `Microsoft.AspNetCore.RateLimiting` middleware provides rate limiting middle ## Authentication uses single scheme as DefaultScheme -As part of the work to simplify authentication, when there is only a single authentication scheme registered, it's automatically used as the . For more information, see [DefaultScheme](xref:security/authentication/index#defaultscheme) +As part of the work to simplify authentication, when there is only a single authentication scheme registered, it's automatically used as the and doesn't need to be specified. For more information, see [DefaultScheme](xref:security/authentication/index#defaultscheme). ## MVC and Razor pages From a45f95c4538f6bac03a1fa3af171709732fd1709 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 4 Nov 2022 16:13:12 -1000 Subject: [PATCH 3/5] What's new defaut scheme --- aspnetcore/security/authentication/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/security/authentication/index.md b/aspnetcore/security/authentication/index.md index e55885a0f706..d950bb72b97f 100644 --- a/aspnetcore/security/authentication/index.md +++ b/aspnetcore/security/authentication/index.md @@ -60,7 +60,7 @@ When there is only a single authentication scheme registered, it becomes the def When there is only a single authentication scheme registered, the single authentication scheme: * Is automatically used as the . -* Eliminates the need to specify the `DefaultScheme` in or . +* Eliminates the need to specify the `DefaultScheme` in or . To disable automatically using the single authentication scheme as the `DefaultScheme`, call `AppContext.SetSwitch("Microsoft.AspNetCore.Authentication.SuppressAutoDefaultScheme")`. From 9f8cacf9b28686ee12394f38834de1bcc88a03fe Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 4 Nov 2022 16:14:17 -1000 Subject: [PATCH 4/5] What's new defaut scheme --- aspnetcore/security/authentication/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/security/authentication/index.md b/aspnetcore/security/authentication/index.md index d950bb72b97f..3c1f80c1cc76 100644 --- a/aspnetcore/security/authentication/index.md +++ b/aspnetcore/security/authentication/index.md @@ -60,7 +60,7 @@ When there is only a single authentication scheme registered, it becomes the def When there is only a single authentication scheme registered, the single authentication scheme: * Is automatically used as the . -* Eliminates the need to specify the `DefaultScheme` in or . +* Eliminates the need to specify the `DefaultScheme` in or . To disable automatically using the single authentication scheme as the `DefaultScheme`, call `AppContext.SetSwitch("Microsoft.AspNetCore.Authentication.SuppressAutoDefaultScheme")`. From 93e2aac66950384e2468bc310266008ceeb79206 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 4 Nov 2022 16:15:11 -1000 Subject: [PATCH 5/5] What's new defaut scheme --- aspnetcore/release-notes/aspnetcore-7.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/release-notes/aspnetcore-7.0.md b/aspnetcore/release-notes/aspnetcore-7.0.md index b8be40c745da..7a59a816f5ff 100644 --- a/aspnetcore/release-notes/aspnetcore-7.0.md +++ b/aspnetcore/release-notes/aspnetcore-7.0.md @@ -17,7 +17,7 @@ The `Microsoft.AspNetCore.RateLimiting` middleware provides rate limiting middle ## Authentication uses single scheme as DefaultScheme -As part of the work to simplify authentication, when there is only a single authentication scheme registered, it's automatically used as the and doesn't need to be specified. For more information, see [DefaultScheme](xref:security/authentication/index#defaultscheme). +As part of the work to simplify authentication, when there's only a single authentication scheme registered, it's automatically used as the and doesn't need to be specified. For more information, see [DefaultScheme](xref:security/authentication/index#defaultscheme). ## MVC and Razor pages