Skip to content

Generate authenticator QR codes locally - #417

Merged
damianh merged 1 commit into
mainfrom
damianh-local-authenticator-qr
Nov 24, 2026
Merged

damianh merged 1 commit into
mainfrom
damianh-local-authenticator-qr

Conversation

@damianh

@damianh damianh commented Nov 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Generate the authenticator QR code locally with QRCoder.
  • Embed the generated PNG in the Setup2FA page.
  • Document the change and add the QRCoder dependency.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 19:47

Copilot AI left a comment

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.

🟢 Approval recommended

No active review issues are reported for the change to generate authenticator QR codes locally without sending TOTP shared secrets to an external service.

No open issues 🎉

What changed in this PR

Moves authenticator QR-code generation into the user-management sample, avoiding transmission of TOTP shared secrets to an external QR service.

Changes:

  • Generates QR codes server-side with QRCoder and embeds them as PNG data URIs.
  • Adds QRCoder to the sample’s centrally managed dependencies.
  • Documents local generation and safe handling of provisioning URIs.
File Description
IdentityServer/​v8/​UserManagement/​FullSample/​UserManagementSample/​UserManagementSample.csproj Adds the QRCoder package reference.
IdentityServer/​v8/​UserManagement/​FullSample/​UserManagementSample/​Pages/​Manage/​Setup2FA.cshtml.cs Generates QR-code PNG data URIs locally.
IdentityServer/​v8/​UserManagement/​FullSample/​UserManagementSample/​Pages/​Manage/​Setup2FA.cshtml Displays the embedded image instead of requesting an external QR service.
IdentityServer/​v8/​UserManagement/​FullSample/​README.md Documents local generation and shared-secret handling.
IdentityServer/​v8/​Directory.Packages.props Sets the central QRCoder package version.

Review effort: Balanced

@damianh
damianh enabled auto-merge November 24, 2026 19:50
@damianh
damianh merged commit dd5814f into main Nov 24, 2026
72 checks passed
@damianh
damianh deleted the damianh-local-authenticator-qr branch November 24, 2026 19:53
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.

3 participants