IdentityFlow.Credentials.Totp
0.1.0-alpha.20260722083539
dotnet add package IdentityFlow.Credentials.Totp --version 0.1.0-alpha.20260722083539
NuGet\Install-Package IdentityFlow.Credentials.Totp -Version 0.1.0-alpha.20260722083539
<PackageReference Include="IdentityFlow.Credentials.Totp" Version="0.1.0-alpha.20260722083539" />
<PackageVersion Include="IdentityFlow.Credentials.Totp" Version="0.1.0-alpha.20260722083539" />
<PackageReference Include="IdentityFlow.Credentials.Totp" />
paket add IdentityFlow.Credentials.Totp --version 0.1.0-alpha.20260722083539
#r "nuget: IdentityFlow.Credentials.Totp, 0.1.0-alpha.20260722083539"
#:package IdentityFlow.Credentials.Totp@0.1.0-alpha.20260722083539
#addin nuget:?package=IdentityFlow.Credentials.Totp&version=0.1.0-alpha.20260722083539&prerelease
#tool nuget:?package=IdentityFlow.Credentials.Totp&version=0.1.0-alpha.20260722083539&prerelease
IdentityFlow.Credentials.Totp
Authenticator app / TOTP credential support for IdentityFlow.
services.AddIdentityFlowCredentials()
.AddTotpCredentials(options =>
{
options.Issuer = "Example App";
options.Algorithm = TotpAlgorithm.Sha256;
options.CodeLength = 8;
options.TimeStep = TimeSpan.FromSeconds(30);
});
The package stores each credential's algorithm, digit count, and period with its protected shared secret. Those parameters remain fixed for that credential if application defaults change later. Rows created before parameter persistence use the historical SHA-1, 6-digit, 30-second interpretation; clock-skew policy remains configurable. Enrollment lifetimes are limited to one second through 24 hours, and persisted issuer/display/account labels are bounded to protect setup and storage paths.
Verification tracks the last accepted TOTP window to prevent code replay. Codes may contain a single ASCII space or hyphen between digits for readability. Leading, trailing, repeated, non-ASCII, and other separators are rejected, and input length is bounded before secret decoding.
| 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
- IdentityFlow.Credentials.Abstractions (>= 0.1.0-alpha.20260722083539)
- IdentityFlow.Stores.Abstractions (>= 0.1.0-alpha.20260722083539)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Options (>= 10.0.10)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on IdentityFlow.Credentials.Totp:
| Package | Downloads |
|---|---|
|
IdentityFlow.Hosting.AspNetCore
ASP.NET Core hosting integration for IdentityFlow. |
|
|
IdentityFlow.Tooling.AgentAuth
Playwright-neutral agent authentication cache and TOTP helpers for IdentityFlow tests. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.20260722083539 | 42 | 7/22/2026 |
| 0.1.0-alpha.20260722073217 | 43 | 7/22/2026 |
| 0.1.0-alpha.20260620175120 | 77 | 6/20/2026 |
| 0.1.0-alpha.20260620172859 | 59 | 6/20/2026 |
| 0.1.0-alpha.20260620170646 | 61 | 6/20/2026 |
| 0.1.0-alpha.20260620143000 | 60 | 6/20/2026 |
| 0.1.0-alpha.20260620135000 | 56 | 6/20/2026 |
| 0.1.0-alpha.20260620122408 | 67 | 6/20/2026 |
| 0.1.0-alpha.20260614215234 | 65 | 6/14/2026 |