Toamaisutaa.Passkeys
0.15.0
dotnet add package Toamaisutaa.Passkeys --version 0.15.0
NuGet\Install-Package Toamaisutaa.Passkeys -Version 0.15.0
<PackageReference Include="Toamaisutaa.Passkeys" Version="0.15.0" />
<PackageVersion Include="Toamaisutaa.Passkeys" Version="0.15.0" />
<PackageReference Include="Toamaisutaa.Passkeys" />
paket add Toamaisutaa.Passkeys --version 0.15.0
#r "nuget: Toamaisutaa.Passkeys, 0.15.0"
#:package Toamaisutaa.Passkeys@0.15.0
#addin nuget:?package=Toamaisutaa.Passkeys&version=0.15.0
#tool nuget:?package=Toamaisutaa.Passkeys&version=0.15.0
Toamaisutaa.Passkeys
Passkeys - WebAuthn - for Toamaisutaa. Opt-in: nothing else references this package, and a deployment that does not install it has no passkey tables, no passkey endpoints and no FIDO2 dependency.
It is the passwordless half of the library. One prompt proves possession of the authenticator and
verifies the person holding it, which is two factors in a single gesture - so a passkey sign-in
satisfies TwoFactor:Enforcement on its own, with no TOTP code on top.
builder.Services.AddToamaisutaaPasskeys(builder.Configuration);
app.MapToamaisutaaPasskeyEndpoints();
{
"Passkeys": {
"RelyingPartyId": "example.com",
"Origins": [ "https://example.com" ]
}
}
RelyingPartyId is the domain a credential is bound to and there is no default, because getting it
wrong is permanent: every credential already registered against the old value is bound to it and
cannot be re-bound.
Six endpoints, under LocalLogin:EndpointPrefix + Passkeys:EndpointPrefix:
| Method | Route | Who |
|---|---|---|
POST |
/auth/passkeys/register/begin |
Signed in |
POST |
/auth/passkeys/register/complete |
Signed in |
POST |
/auth/passkeys/assertion/begin |
Anyone |
POST |
/auth/passkeys/assertion/complete |
Anyone |
GET |
/auth/passkeys |
Signed in |
DELETE |
/auth/passkeys/{id} |
Signed in |
Sign-in begins with no identifier at all: the browser finds a discoverable credential itself, so there is no user name box and nothing to answer whether an account exists.
Full documentation: https://docs.toamaisutaa.pianonic.ch/passkeys
| 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 (>= 4.0.1)
- Toamaisutaa.Abstractions (>= 0.15.0)
- Toamaisutaa.AspNetCore (>= 0.15.0)
- Toamaisutaa.Core (>= 0.15.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.