Update .NET AAuth research plan to leverage existing libraries#4
Merged
Conversation
…Canonicalizer, etc.) in research plan
Copilot
AI
changed the title
[WIP] Update AAuth .NET SDK research plan with security libraries
Update .NET AAuth research plan to leverage existing libraries
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Enhancement
The research plan assumed RFC 9421, RFC 8941, RFC 8785, JWK thumbprints, JWKS hosting and Ed25519 JWT support would be hand-rolled in .NET. Several mature libraries now cover these — the plan should point at them and reserve custom code for AAuth-specific protocol surface.
What does this improve?
.agent/plans/2026-05-13-dotnet-aauth-sdk/research.mdnow names concrete .NET packages for every standard protocol component and narrows bespoke work to AAuth-specific logic (Signature-Keyschemes, AAuth-* header semantics, challenge orchestration, mission/R3).Why is this valuable?
Removes the "biggest implementation effort" framing around RFC 9421, de-risks Ed25519 JWT signing, and makes it clear what the project actually has to own vs. consume.
Implementation approach:
NSign(.Client,.AspNetCore,.BouncyCastlefor Ed25519). §6 keeps the conceptual signature-base description as a spec reference behind an "Update (2026-05)" banner.Microsoft.IdentityModel.Tokens.JsonWebKey.ComputeJwkThumbprint()(RFC 7638); JWTs useJsonWebTokenHandler. Ed25519 JWT signing usesScottBrady.IdentityModel.EdDsa(provider for Microsoft.IdentityModel) orjose-jwt(standalone) — Microsoft.IdentityModel still ships no built-in EdDSA provider.Signature-Keyand AAuth-* headers parsed viaStructuredFieldValues(RFC 8941).AAuthSigningHandlerlayered onNSign.Client;AAuthMiddlewarelayered onNSign.AspNetCore. JWKS hosting/rotation viaNetDevPack.Security.Jwt.AspNetCoreorJwks.Manager.System.CommandLine.JsonCanonicalizer(author's port) withStratumn.CanonicalJsonas alternative.NSec.Cryptographycalled out as recommended Ed25519 fallback;Portable.BouncyCastleas secondary. The .NET 10/.NET 8 compatibility table was split into raw-crypto / JWT / RFC-9421 rows to make explicit that Ed25519-in-JWT and Ed25519-in-RFC-9421 require external NuGets on both runtimes.StructuredFieldValues,JsonCanonicalizer,ScottBrady.IdentityModel.EdDsa/jose-jwt,NetDevPack.Security.Jwt.AspNetCore/Jwks.Manager,System.CommandLine,WireMock.Net,ModelContextProtocol(.AspNetCore),Portable.BouncyCastle.WireMock.Netadded alongsideWebApplicationFactory<T>for AP/PS/Resource/AS simulation in integration tests.