Skip to content

Refresh QR code generation article: add Blazor cross-reference, modernize partial syntax, fix typo#37038

Merged
wadepickett merged 6 commits intomainfrom
copilot/update-enable-qr-code-generation
Apr 21, 2026
Merged

Refresh QR code generation article: add Blazor cross-reference, modernize partial syntax, fix typo#37038
wadepickett merged 6 commits intomainfrom
copilot/update-enable-qr-code-generation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

Fixes #37037

The identity-enable-qrcodes article needed a refresh to point Blazor readers to dedicated guidance, replace outdated @await Html.PartialAsync(...) calls with the <partial> tag helper (available since 2.1, which is the article's monikerRange floor), and correct a typo.

Changes to aspnetcore/security/authentication/identity-enable-qrcodes.md

  • Blazor cross-reference: Added a [!NOTE] after the [!WARNING] block linking to <xref:blazor/security/qrcodes-for-authenticator-apps> and <xref:blazor/security/webassembly/standalone-with-identity/qrcodes-for-authenticator-apps> so Blazor developers don't unnecessarily follow the Razor Pages/MVC steps.

  • Tag helper modernization: Both @section Scripts blocks now use the <partial> tag helper:

    @section Scripts {
        <partial name="_ValidationScriptsPartial" />
    }
  • Typo: "the code the authenticator proves" → "provides".

  • Metadata: Updated ms.date, alphabetized frontmatter, and added ai-usage: ai-assisted.


Internal previews

📄 File 🔗 Preview link
aspnetcore/security/authentication/identity-enable-qrcodes.md Enable QR code generation for TOTP authenticator apps in ASP.NET Core

Copilot AI linked an issue Apr 21, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/dotnet/AspNetCore.Docs/sessions/8632276a-efa4-4be5-8864-182179176818

Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Copilot AI changed the title [WIP] Update article to enable QR code generation for Blazor solutions Refresh QR code generation article: add Blazor cross-reference, modernize partial syntax, fix typo Apr 21, 2026
Copilot AI requested a review from wadepickett April 21, 2026 16:35
updated metadata to sorted by alpha
Updated notes for QR code generation guidance, including Blazor-specific instructions for ASP.NET Core 8.0 or later.
Copy link
Copy Markdown
Contributor

@wadepickett wadepickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved after I added several fixes.

@wadepickett wadepickett marked this pull request as ready for review April 21, 2026 18:23
@wadepickett wadepickett requested a review from tdykstra April 21, 2026 18:23
Copy link
Copy Markdown
Contributor

@tdykstra tdykstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one suggestion for a rewrite opportunity. 😄

# Enable QR code generation for TOTP authenticator apps in ASP.NET Core

ASP.NET Core ships with support for authenticator applications for individual authentication. Two factor authentication (2FA) authenticator apps, using a Time-based One-time Password Algorithm (TOTP), are the industry recommended approach for 2FA. 2FA using TOTP is preferred to SMS 2FA. An authenticator app provides a 6 to 8 digit code which users must enter after confirming their username and password. Typically an authenticator app is installed on a smartphone.
ASP.NET Core includes support for authenticator applications for individual authentication. Two-factor authentication (2FA) authenticator apps that use a Time-based One-time Password Algorithm (TOTP) are the industry-recommended approach for 2FA. 2FA that uses TOTP is preferred over SMS 2FA. An authenticator app provides a 6 to 8 digit code that users enter after confirming their username and password. Typically, users install an authenticator app on a smartphone.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be converted into a table and/or the sentences be shortened? I found it hard to follow.

Copy link
Copy Markdown
Contributor

@wadepickett wadepickett Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I updated it as a list after comparing a table and list. More readible now. Thanks!

Comment thread aspnetcore/security/authentication/identity-enable-qrcodes.md Outdated
@wadepickett wadepickett merged commit 8a5ca83 into main Apr 21, 2026
4 checks passed
@wadepickett wadepickett deleted the copilot/update-enable-qr-code-generation branch April 21, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update: Enable QR code generation

3 participants