HCS.Passwordless.WebAuthn
2.1.0
dotnet add package HCS.Passwordless.WebAuthn --version 2.1.0
NuGet\Install-Package HCS.Passwordless.WebAuthn -Version 2.1.0
<PackageReference Include="HCS.Passwordless.WebAuthn" Version="2.1.0" />
<PackageVersion Include="HCS.Passwordless.WebAuthn" Version="2.1.0" />
<PackageReference Include="HCS.Passwordless.WebAuthn" />
paket add HCS.Passwordless.WebAuthn --version 2.1.0
#r "nuget: HCS.Passwordless.WebAuthn, 2.1.0"
#:package HCS.Passwordless.WebAuthn@2.1.0
#addin nuget:?package=HCS.Passwordless.WebAuthn&version=2.1.0
#tool nuget:?package=HCS.Passwordless.WebAuthn&version=2.1.0
HCS.Passwordless.WebAuthn
WebAuthn / FIDO2 passkey add-on for HCS.Passwordless. Enables hardware-backed biometric or security-key authentication for Umbraco members using the browser's Credential Management API.
Requirements
- Umbraco 17.3.5 or later (
[17.3.5, 18.0.0)) - A browser that supports WebAuthn (all modern browsers)
HCS.Passwordless.Coreis pulled in automatically as a transitive dependency
Installation
dotnet add package HCS.Passwordless.WebAuthn
Setup
1. Register (Program.cs)
builder.CreateUmbracoBuilder()
.AddBackOffice()
.AddWebsite()
.AddPasswordlessWebAuthn()
.Build();
2. Configure (appsettings.json)
{
"HCS": {
"Authentication": {
"WebAuthn": {
"Enabled": true,
"RpName": "My Site",
"Origins": [ "https://example.com" ]
}
}
}
}
Important:
Originsmust exactly match the origin of the site as seen by the browser, including scheme and port.
3. Add passkey UI partials
@* Sign-in *@
@await Html.PartialAsync("Passwordless/PasskeySignInButton")
@* On a member profile/settings page: *@
@await Html.PartialAsync("Passwordless/PasskeyRegisterButton")
@await Html.PartialAsync("Passwordless/PasskeyCredentialList")
Configuration Options
HCS:Authentication:WebAuthn
| Key | Type | Default | Description |
|---|---|---|---|
Enabled |
bool | false |
Enable/disable WebAuthn flow |
RpName |
string | Umbraco Site |
Relying party display name shown to the user |
Origins |
string[] | [] |
Allowed origins (must match browser origin exactly) |
Endpoints
| Method | Path | Description |
|---|---|---|
POST |
/auth/webauthn/register/options |
Get registration challenge |
POST |
/auth/webauthn/register/complete |
Complete credential registration |
POST |
/auth/webauthn/signin/options |
Get authentication challenge |
POST |
/auth/webauthn/signin/complete |
Complete authentication and sign in |
GET |
/auth/webauthn/credentials |
List member's registered credentials |
PATCH |
/auth/webauthn/credentials/{id} |
Rename a credential |
DELETE |
/auth/webauthn/credentials/{id} |
Remove a credential |
GET |
/.well-known/webauthn |
Related Origins document (multi-domain support) |
Multi-Domain Support
WebAuthn ties credentials to an RP ID (typically the root domain, e.g. example.com). When you need the same passkey to work across multiple origins (e.g. https://example.com and https://login.example.com), browsers require that the RP ID's domain publishes a Related Origins document.
This package automatically serves that document at GET /.well-known/webauthn. The document is populated from HCS:Authentication:WebAuthn:Origins and follows the format defined by the W3C WebAuthn Related Origins spec.
Example configuration
{
"HCS": {
"Authentication": {
"WebAuthn": {
"RpId": "example.com",
"Origins": [
"https://example.com",
"https://login.example.com",
"https://app.example.com"
]
}
}
}
}
// GET https://example.com/.well-known/webauthn
{
"origins": [
"https://example.com",
"https://login.example.com",
"https://app.example.com"
]
}
The endpoint returns 404 when
EnabledisfalseorOriginsis empty.
Database Migration
The package adds a MemberCredential table to the Umbraco database via Umbraco's migration system. This runs automatically on startup.
Security Notes
- Challenge state is stored in distributed cache and is single-use.
- Counter regression (a credential reporting a lower sign-count than previously recorded) triggers a
PasskeyCounterRegressionNotificationso the site can alert the member of a potential cloned authenticator. - WebAuthn requires HTTPS in production.
localhostis allowed for development.
Replacing Services
| Interface | Default | Purpose |
|---|---|---|
IWebAuthnChallengeStore |
Distributed cache implementation | Store WebAuthn challenges |
IMemberCredentialStore |
UmbracoDbMemberCredentialStore |
Persist credentials in Umbraco DB |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Fido2.AspNet (>= 4.0.1)
- HCS.Passwordless.Core (>= 2.1.0)
- MailKit (>= 4.16.0)
- System.Security.Cryptography.Xml (>= 10.0.7)
- Umbraco.Cms.Core (>= 17.3.5 && < 18.0.0)
- Umbraco.Cms.Infrastructure (>= 17.3.5 && < 18.0.0)
- Umbraco.Cms.Web.Common (>= 17.3.5 && < 18.0.0)
- Umbraco.Cms.Web.Website (>= 17.3.5 && < 18.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.0 | 38 | 8/30/2026 |
| 2.0.2 | 126 | 5/18/2026 |
| 2.0.1 | 122 | 5/18/2026 |
| 2.0.0 | 108 | 5/18/2026 |
| 2.0.0-beta002 | 111 | 5/18/2026 |
| 2.0.0-beta001 | 101 | 5/18/2026 |
| 1.0.1 | 104 | 5/18/2026 |
| 1.0.0 | 110 | 5/18/2026 |
| 1.0.0-beta002 | 105 | 5/18/2026 |
| 1.0.0-beta001 | 101 | 5/18/2026 |