IdentityFlow.Credentials.ApiKeys
0.1.0-alpha.20260722083539
dotnet add package IdentityFlow.Credentials.ApiKeys --version 0.1.0-alpha.20260722083539
NuGet\Install-Package IdentityFlow.Credentials.ApiKeys -Version 0.1.0-alpha.20260722083539
<PackageReference Include="IdentityFlow.Credentials.ApiKeys" Version="0.1.0-alpha.20260722083539" />
<PackageVersion Include="IdentityFlow.Credentials.ApiKeys" Version="0.1.0-alpha.20260722083539" />
<PackageReference Include="IdentityFlow.Credentials.ApiKeys" />
paket add IdentityFlow.Credentials.ApiKeys --version 0.1.0-alpha.20260722083539
#r "nuget: IdentityFlow.Credentials.ApiKeys, 0.1.0-alpha.20260722083539"
#:package IdentityFlow.Credentials.ApiKeys@0.1.0-alpha.20260722083539
#addin nuget:?package=IdentityFlow.Credentials.ApiKeys&version=0.1.0-alpha.20260722083539&prerelease
#tool nuget:?package=IdentityFlow.Credentials.ApiKeys&version=0.1.0-alpha.20260722083539&prerelease
IdentityFlow.Credentials.ApiKeys
Scoped API key credentials for service-to-service and legacy integrations.
services.AddIdentityFlowCredentials()
.AddApiKeyCredentials(options =>
{
options.Prefix = "ifk";
});
Raw API keys are returned only from create/rotate operations. Stores persist lookup prefixes, hashes, metadata, scopes, and lifecycle timestamps.
Issued keys use the versioned prefix_v1_selector.secret envelope. The independently random selector is the durable lookup key, so changing issuance options does not invalidate existing keys. Authentication rejects malformed, whitespace-altered, and oversized values before store or hash work.
Best-effort usage metadata is coalesced to one write per five minutes by default. Usage updates are monotonic and do not participate in secret/revocation concurrency; set MinimumUsageWriteInterval explicitly to change the interval or to null for an update on every later timestamp.
AddApiKeyCredentials() uses InMemoryApiKeyStore by default for development and simple local setups. Register IdentityFlow.Credentials.ApiKeys.EntityFramework with AddIdentityFlowApiKeysEntityFrameworkStore() to persist API keys through IdentityFlowDbContext, or replace IIdentityFlowApiKeyStore with a custom durable store.
| 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.Credentials.MachineSecrets (>= 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.ApiKeys:
| Package | Downloads |
|---|---|
|
IdentityFlow.Credentials.ApiKeys.EntityFramework
Entity Framework Core storage for IdentityFlow API key credentials. |
|
|
IdentityFlow.Hosting.AspNetCore.ApiKeys
ASP.NET Core API key authentication handler for IdentityFlow. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.20260722083539 | 61 | 7/22/2026 |
| 0.1.0-alpha.20260722073217 | 58 | 7/22/2026 |
| 0.1.0-alpha.20260620175120 | 77 | 6/20/2026 |
| 0.1.0-alpha.20260620172859 | 65 | 6/20/2026 |
| 0.1.0-alpha.20260620170646 | 72 | 6/20/2026 |
| 0.1.0-alpha.20260620143000 | 68 | 6/20/2026 |
| 0.1.0-alpha.20260620135000 | 67 | 6/20/2026 |
| 0.1.0-alpha.20260620122408 | 71 | 6/20/2026 |
| 0.1.0-alpha.20260614215234 | 68 | 6/14/2026 |