Repository navigation
refactor(blazor): use native form inputs for login credentials in UAuthLoginForm - #159
Merged
mckaragoz merged 9 commits intoNov 10, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #159 +/- ##
==========================================
+ Coverage 87.21% 87.23% +0.01%
==========================================
Files 580 580
Lines 18919 18935 +16
Branches 2228 2227 -1
==========================================
+ Hits 16501 16518 +17
+ Misses 1616 1615 -1
Partials 802 802
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactor
UAuthLoginFormto read credentials directly from native HTML form inputs instead of Blazor component parameters.Changes
IdentifierandSecretparameters and their hidden input fields.FormDatasubmission without passing credentials through Blazor component state or JS interop arguments.TryOnly,TryAndCommit,DirectCommit, and PKCE login flows.Motivation
Reduce unnecessary credential exposure while keeping
UAuthLoginFormindependent of specific UI component libraries.Custom UI components can participate through standard HTML
nameattributes without requiring credential binding to the form component.UAuthLoginFormno longer acceptsIdentifierandSecretcomponent parameters.Credentials are now read directly from native browser form inputs instead of Blazor component bindings. This prevents credentials from being transmitted through Blazor Server's SignalR connection solely for form submission.
Migration
Before:
After — use the built-in login form:
<UAuthLoginForm />Or provide custom form fields:
Important migration notes:
IdentifierandSecret.UAuthLoginFormnow renders a complete login form automatically when no child content is provided.The existing submission modes (
TryOnly,TryAndCommit, andDirectCommit) remain available.