AAuth 0.1.0-alpha.1
This is a prerelease version of AAuth.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AAuth --version 0.1.0-alpha.1
NuGet\Install-Package AAuth -Version 0.1.0-alpha.1
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="AAuth" Version="0.1.0-alpha.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AAuth" Version="0.1.0-alpha.1" />
<PackageReference Include="AAuth" />
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 AAuth --version 0.1.0-alpha.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AAuth, 0.1.0-alpha.1"
#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 AAuth@0.1.0-alpha.1
#: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=AAuth&version=0.1.0-alpha.1&prerelease
#tool nuget:?package=AAuth&version=0.1.0-alpha.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Getting Started
Prerequisites
- .NET 10+ SDK
Install
dotnet add package AAuth
Or, if working within this repository, add a project reference:
dotnet add reference src/AAuth/AAuth.csproj
Generate a Key
using AAuth.Crypto;
var key = AAuthKey.Generate(); // Ed25519 keypair
var publicJwk = key.ToPublicJwk(); // Export for registration
var thumbprint = key.ComputeJwkThumbprint(); // JWK thumbprint (S256)
Make Your First Signed Request
The simplest mode is pseudonymous (HWK) — no Agent Provider needed:
using AAuth.Crypto;
using AAuth.HttpSig;
var key = AAuthKey.Generate();
using var client = new AAuthClientBuilder(key)
.UseHwk()
.Build();
var response = await client.GetAsync("https://resource.example/data");
// Request is signed with HTTP Message Signatures (RFC 9421)
// Resource sees: Signature-Key: sig=hwk;jkt="<thumbprint>"
Alternative: One-liner with static factory
using var client = AAuthSigningHandler.CreateClient(key, new HwkSignatureKeyProvider(key));
Alternative: DI / IHttpClientFactory
// In Program.cs
builder.Services.AddAAuthClient("agent", options =>
{
options.Key = key;
options.SigningMode = new HwkSignatureKeyProvider(key);
});
// Inject via IHttpClientFactory
public class MyService(IHttpClientFactory factory)
{
private readonly HttpClient _client = factory.CreateClient("agent");
}
What Just Happened?
AAuthKey.Generate()created an Ed25519 keypair.AAuthClientBuilderconfigured the HWK signing mode and produced anHttpClient.AAuthSigningHandlersigns the request per RFC 9421 covering@method,@authority,@path, andsignature-key.- The resource verifies the signature and sees a pseudonymous key thumbprint.
Next Steps
- Signing Modes Overview — choose the right mode for your use case
- Identity-Based Access — simplest workflow
- PS-Asserted Access — full authorization flow
- Protocol Concepts — understand the full picture
Protocol Reference
Explore the interactive protocol specification at https://explorer.aauth.dev/.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- BouncyCastle.Cryptography (>= 2.6.2)
- Microsoft.IdentityModel.Tokens (>= 8.18.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on AAuth:
| Package | Downloads |
|---|---|
|
AAuth.R3
Experimental AAuth Rich Resource Requests (R3) preview helpers — vocabulary-agnostic operations (OpenAPI, MCP, …). Depends on AAuth. |
|
|
AAuth.Events
AAuth Events companion token, subscription and delivery contracts. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.10.0-alpha.1 | 59 | 9/10/2026 |
| 0.8.0-alpha.4 | 89 | 7/3/2026 |
| 0.8.0-alpha.3 | 89 | 6/29/2026 |
| 0.8.0-alpha.2 | 77 | 6/28/2026 |
| 0.8.0-alpha.1 | 77 | 6/27/2026 |
| 0.2.0-alpha.2 | 78 | 6/27/2026 |
| 0.2.0-alpha.1 | 77 | 6/10/2026 |
| 0.1.0-alpha.12 | 309 | 6/7/2026 |
| 0.1.0-alpha.11 | 66 | 6/3/2026 |
| 0.1.0-alpha.10 | 76 | 6/1/2026 |
| 0.1.0-alpha.9 | 65 | 5/31/2026 |
| 0.1.0-alpha.8 | 73 | 5/28/2026 |
| 0.1.0-alpha.7 | 66 | 5/27/2026 |
| 0.1.0-alpha.6 | 78 | 5/27/2026 |
| 0.1.0-alpha.5 | 78 | 5/26/2026 |
| 0.1.0-alpha.4 | 67 | 5/25/2026 |
| 0.1.0-alpha.3 | 70 | 5/24/2026 |
| 0.1.0-alpha.2 | 59 | 5/23/2026 |
| 0.1.0-alpha.1 | 74 | 5/23/2026 |