Skip to content

Update documentation to reference Blazor helpers from Microsoft.Identity.Web package#3723

Merged
bgavrilMS merged 4 commits intomasterfrom
copilot/update-documentation-for-blazor-helpers
Mar 20, 2026
Merged

Update documentation to reference Blazor helpers from Microsoft.Identity.Web package#3723
bgavrilMS merged 4 commits intomasterfrom
copilot/update-documentation-for-blazor-helpers

Conversation

Copy link
Contributor

Copilot AI commented Feb 13, 2026

Blazor authentication helpers (BlazorAuthenticationChallengeHandler and LoginLogoutEndpointRouteBuilderExtensions) now ship in Microsoft.Identity.Web v3.3.0+. Documentation currently instructs users to copy files from the skill folder.

Changes

Helper files (.github/skills/entra-id-aspire-authentication/)

  • Added header comments indicating inclusion in v3.3.0+
  • Files retained for AI skill reference and documentation

SKILL.md

  • Removed Copy-Item PowerShell commands
  • Updated implementation checklist: replaced "Copy files" steps with "Verify package version includes helpers"
  • Updated file modification table to remove copy references

aspire.md

  • Replaced section 2.4 "Copy helper files from skill folder" → "Blazor authentication helpers"
  • Marked <details> code blocks as "(Reference)" with note about package inclusion
  • Updated implementation checklist and files table
  • Updated AI Skills section to clarify reference-only status

Before:

$skillPath = ".github/skills/entra-id-aspire-authentication"
Copy-Item "$skillPath/LoginLogoutEndpointRouteBuilderExtensions.cs" "MyService.Web/"
Copy-Item "$skillPath/BlazorAuthenticationChallengeHandler.cs" "MyService.Web/"

After:

These helpers ship in the Microsoft.Identity.Web NuGet package (version 3.3.0+). Simply add using Microsoft.Identity.Web; — no file copying required.

Note

⚠️ Do not merge until Microsoft.Identity.Web v3.3.0+ is released with integrated helpers.

Original prompt

Goal

Update all documentation and skills to reference the Blazor helpers (BlazorAuthenticationChallengeHandler and LoginLogoutEndpointRouteBuilderExtensions) from the official Microsoft.Identity.Web NuGet package, instead of instructing users to copy files from the skill folder.

Context

Once Microsoft.Identity.Web ships with the integrated Blazor helpers (from Issue #1), users will no longer need to manually copy helper files. This PR prepares the documentation updates — it should NOT be merged until Microsoft.Identity.Web is released with the Blazor helpers.

Tasks

1. Update .github/skills/entra-id-aspire-authentication/SKILL.md

Find and update sections that reference copying files from the skill folder. Change instructions like:

Before:

Copy these helper files from the skill folder:
- `BlazorAuthenticationChallengeHandler.cs`
- `LoginLogoutEndpointRouteBuilderExtensions.cs`

After:

These helpers ship in the `Microsoft.Identity.Web` NuGet package (version X.X.X+). Simply add `using Microsoft.Identity.Web;` — no file copying required.

Also update any PowerShell copy commands like:

$skillPath = ".github/skills/entra-id-aspire-authentication"
Copy-Item "$skillPath/LoginLogoutEndpointRouteBuilderExtensions.cs" "MyService.Web/"
Copy-Item "$skillPath/BlazorAuthenticationChallengeHandler.cs" "MyService.Web/"

To indicate these are no longer needed.

2. Update docs/frameworks/aspire.md

Find section 2.4: Copy helper files from skill folder and similar references. Update to indicate:

  • The helpers now ship in the package
  • No manual file copying required
  • Just reference Microsoft.Identity.Web and use the classes directly

Update the Implementation checklist to remove:

  • [ ] Copied LoginLogoutEndpointRouteBuilderExtensions.cs from skill folder
  • [ ] Copied BlazorAuthenticationChallengeHandler.cs from skill folder

Replace with:

  • [ ] Verified Microsoft.Identity.Web version includes Blazor helpers (vX.X.X+)

3. Update any <details> blocks showing file contents

The <details> blocks in aspire.md that show the full source of:

  • LoginLogoutEndpointRouteBuilderExtensions.cs
  • BlazorAuthenticationChallengeHandler.cs

Should be updated to note these are reference only — the actual implementation ships in the NuGet package.

4. Keep the source files in .github/skills/entra-id-aspire-authentication/

Do NOT delete BlazorAuthenticationChallengeHandler.cs and LoginLogoutEndpointRouteBuilderExtensions.cs from the skills folder. They serve as:

  • Reference for the AI skill
  • Historical documentation
  • Fallback for older package versions

Add a comment at the top of each file:

// NOTE: This file is included in Microsoft.Identity.Web package (vX.X.X+).
// This copy is maintained for AI skill reference and documentation purposes.
// For production use, reference the NuGet package directly.

Important Notes

⚠️ DO NOT MERGE this PR until Microsoft.Identity.Web is released with the Blazor helpers integrated.

The PR should be created and ready for review, but kept in draft or with a "do not merge" label until the package is published.

Files to modify

  • .github/skills/entra-id-aspire-authentication/SKILL.md
  • .github/skills/entra-id-aspire-authentication/BlazorAuthenticationChallengeHandler.cs (add header comment only)
  • .github/skills/entra-id-aspire-authentication/LoginLogoutEndpointRouteBuilderExtensions.cs (add header comment only)
  • docs/frameworks/aspire.md

This pull request was created from Copilot chat.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits February 13, 2026 05:35
Co-authored-by: jmprieur <13203188+jmprieur@users.noreply.github.com>
Co-authored-by: jmprieur <13203188+jmprieur@users.noreply.github.com>
Co-authored-by: jmprieur <13203188+jmprieur@users.noreply.github.com>
Copilot AI changed the title [WIP] Update documentation to reference Blazor helpers in Microsoft.Identity.Web Update documentation to reference Blazor helpers from Microsoft.Identity.Web package Feb 13, 2026
Copilot AI requested a review from jmprieur February 13, 2026 05:39
@jmprieur jmprieur changed the title Update documentation to reference Blazor helpers from Microsoft.Identity.Web package [.⚠️DO NOT MERGE BEFORE RELEASE] Update documentation to reference Blazor helpers from Microsoft.Identity.Web package Feb 13, 2026
@bgavrilMS bgavrilMS marked this pull request as ready for review March 20, 2026 15:21
@bgavrilMS bgavrilMS requested a review from a team as a code owner March 20, 2026 15:21
@bgavrilMS bgavrilMS changed the title [.⚠️DO NOT MERGE BEFORE RELEASE] Update documentation to reference Blazor helpers from Microsoft.Identity.Web package Update documentation to reference Blazor helpers from Microsoft.Identity.Web package Mar 20, 2026
@bgavrilMS
Copy link
Member

Id.Web 4.6.0 released, merging this.

@bgavrilMS bgavrilMS merged commit a120ab1 into master Mar 20, 2026
4 checks passed
@bgavrilMS bgavrilMS deleted the copilot/update-documentation-for-blazor-helpers branch March 20, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants