From 29510a98910d14bb72f89f42f62a9ba5d36b06db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Tesa=C5=99?= <33880579+tesar-tech@users.noreply.github.com> Date: Fri, 20 Jun 2025 23:40:56 +0200 Subject: [PATCH 1/3] remove @page directive from sample component (#35651) --- aspnetcore/blazor/components/js-spa-frameworks.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/aspnetcore/blazor/components/js-spa-frameworks.md b/aspnetcore/blazor/components/js-spa-frameworks.md index 65cb07709e56..7cb48462ae66 100644 --- a/aspnetcore/blazor/components/js-spa-frameworks.md +++ b/aspnetcore/blazor/components/js-spa-frameworks.md @@ -378,8 +378,6 @@ The following `Counter` component uses an `IncrementAmount` parameter to set the `Counter.razor`: ```razor -@page "/counter" -
Current count: @currentCount
From bf6851c7e2314b485199c35d10c9ba8b4b72eb8f Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:52:24 -0400 Subject: [PATCH 2/3] Update issue processing (#35654) --- .github/workflows/blazor-hybrid-issue-processing.yml | 2 +- .github/workflows/blazor-issue-processing.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blazor-hybrid-issue-processing.yml b/.github/workflows/blazor-hybrid-issue-processing.yml index 144ac011002c..950431598b57 100644 --- a/.github/workflows/blazor-hybrid-issue-processing.yml +++ b/.github/workflows/blazor-hybrid-issue-processing.yml @@ -17,7 +17,7 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: `### 🌱🐇 **_Spring is here!!_** 🐣🌻 + body: `### 🏖️🌞 **_Summertime!! Woot!!_** 🏐⛵ A green dinosaur 🦖 will be along shortly to assist. *Stand-by ........*` }) diff --git a/.github/workflows/blazor-issue-processing.yml b/.github/workflows/blazor-issue-processing.yml index f8045d46ff8e..650a645b59de 100644 --- a/.github/workflows/blazor-issue-processing.yml +++ b/.github/workflows/blazor-issue-processing.yml @@ -22,7 +22,7 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: `### 🌱🐇 **_Spring is here!!_** 🐣🌻 + body: `### 🏖️🌞 **_Summertime!! Woot!!_** 🏐⛵ *Stand-by!* ... A green dinosaur 🦖 will be along shortly to assist.` }) From 1c83128189ad5e9c611bb13da7b5e6ad1b86a545 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Fri, 20 Jun 2025 18:25:45 -0400 Subject: [PATCH 3/3] Fix broken code snippets and links (#35655) --- .../security/authentication/ws-federation.md | 34 ++++++++++++++++--- .../ws-federation/samples/Startup21.cs | 4 +-- .../ws-federation/samples/Startup31.cs | 4 +-- .../ws-federation/samples/StartupNon21.cs | 4 +-- .../ws-federation/samples/StartupNon31.cs | 4 +-- 5 files changed, 37 insertions(+), 13 deletions(-) diff --git a/aspnetcore/security/authentication/ws-federation.md b/aspnetcore/security/authentication/ws-federation.md index 8dd627b83759..4af86082a1c0 100644 --- a/aspnetcore/security/authentication/ws-federation.md +++ b/aspnetcore/security/authentication/ws-federation.md @@ -74,42 +74,66 @@ By default, the new middleware:  +:::moniker range=">= aspnetcore-2.1" + ## Use WS-Federation without ASP.NET Core Identity The WS-Federation middleware can be used without Identity. For example: + +:::moniker-end + :::moniker range=">= aspnetcore-3.0" -[!code-csharp[](ws-federation/samples/StartupNon31.cs?name=snippet)] + +:::code language="csharp" source="ws-federation/samples/StartupNon31.cs" id="snippet"::: + :::moniker-end :::moniker range=">= aspnetcore-2.1 < aspnetcore-3.0" -[!code-csharp[](ws-federation/samples/StartupNon21.cs?name=snippet)] + +:::code language="csharp" source="ws-federation/samples/StartupNon21.cs" id="snippet"::: + :::moniker-end +:::moniker range=">= aspnetcore-2.1" + ## Add WS-Federation as an external login provider for ASP.NET Core Identity * Add a dependency on [Microsoft.AspNetCore.Authentication.WsFederation](https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.WsFederation) to the project. + * Add WS-Federation to `Startup.ConfigureServices`: +:::moniker-end + :::moniker range=">= aspnetcore-3.0" -[!code-csharp[](ws-federation/samples/Startup31.cs?name=snippet)] + +:::code language="csharp" source="ws-federation/samples/Startup31.cs" id="snippet"::: + +[!INCLUDE [default settings configuration](social/includes/default-settings.md)] + :::moniker-end :::moniker range=">= aspnetcore-2.1 < aspnetcore-3.0" -[!code-csharp[](ws-federation/samples/Startup21.cs?name=snippet)] -:::moniker-end + +:::code language="csharp" source="ws-federation/samples/Startup21.cs" id="snippet"::: [!INCLUDE [default settings configuration](social/includes/default-settings.md)] +:::moniker-end + ### Log in with WS-Federation Browse to the app and click the **Log in** link in the nav header. There's an option to log in with WsFederation: +  With ADFS as the provider, the button redirects to an ADFS sign-in page: +  With Microsoft Entra ID as the provider, the button redirects to a Microsoft Entra ID sign-in page: +  A successful sign-in for a new user redirects to the app's user registration page: +  diff --git a/aspnetcore/security/authentication/ws-federation/samples/Startup21.cs b/aspnetcore/security/authentication/ws-federation/samples/Startup21.cs index 9e9986af63ac..84a53d4b8bf2 100644 --- a/aspnetcore/security/authentication/ws-federation/samples/Startup21.cs +++ b/aspnetcore/security/authentication/ws-federation/samples/Startup21.cs @@ -25,7 +25,7 @@ public Startup(IConfiguration configuration) public IConfiguration Configuration { get; } // This method gets called by the runtime. Use this method to add services to the container. - #region snippet + //