IdentityFlow.Credentials.Totp 0.1.0-alpha.20260722083539

This is a prerelease version of IdentityFlow.Credentials.Totp.
dotnet add package IdentityFlow.Credentials.Totp --version 0.1.0-alpha.20260722083539
                    
NuGet\Install-Package IdentityFlow.Credentials.Totp -Version 0.1.0-alpha.20260722083539
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IdentityFlow.Credentials.Totp" Version="0.1.0-alpha.20260722083539" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IdentityFlow.Credentials.Totp" Version="0.1.0-alpha.20260722083539" />
                    
Directory.Packages.props
<PackageReference Include="IdentityFlow.Credentials.Totp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add IdentityFlow.Credentials.Totp --version 0.1.0-alpha.20260722083539
                    
#r "nuget: IdentityFlow.Credentials.Totp, 0.1.0-alpha.20260722083539"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package IdentityFlow.Credentials.Totp@0.1.0-alpha.20260722083539
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=IdentityFlow.Credentials.Totp&version=0.1.0-alpha.20260722083539&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=IdentityFlow.Credentials.Totp&version=0.1.0-alpha.20260722083539&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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