OAuth 2.1 JWT validation and token operations for .NET resource servers, with a first-class adapter for Model Context Protocol servers.
| Package | Install | Purpose |
|---|---|---|
Authplane.Sdk |
dotnet add package Authplane.Sdk |
Framework-agnostic JWT validation, AS metadata discovery, and token operations |
Authplane.Mcp |
dotnet add package Authplane.Mcp |
Adapter for the official MCP .NET SDK ASP.NET Core transport |
Requires .NET 8.0 or later.
- OAuth 2.1 (draft-ietf-oauth-v2-1)
- RFC 8414 — Authorization Server Metadata discovery
- RFC 9068 — JWT Profile for OAuth 2.0 Access Tokens (
typ=at+jwt) - RFC 7662 — Token Introspection
- RFC 7009 — Token Revocation
- RFC 8693 — Token Exchange
- RFC 9449 — DPoP (sender-constrained access tokens, inbound + outbound)
- RFC 9728 — OAuth 2.0 Protected Resource Metadata
- RFC 6750 — Bearer Token Usage
- RFC 7519 / 7517 — JWT and JWKS
- JWT signature, issuer, audience,
exp/nbf/iat, andtyp(at+jwt) validation; required claims enforced (sub,client_id,exp,iat,jti) - Algorithm-confusion defenses: only
RS256andES256;noneand HMAC rejected - AS metadata hardening: discovered
issuermust match configured issuer exactly; required endpoints must be present - SSRF hardening on outbound HTTP: DNS pinning, private/loopback/link-local/cloud-metadata IP blocking, HTTPS-only, response size limits, no redirects
- HTTPS-only by default with a
devModetoggle forlocalhostand private networks - JWKS resilience: stale-cache fallback, background refresh at 80% TTL, force-refresh on
kidmiss, lock-coordinated fetches - Inbound DPoP proof verification: binding, replay,
htm/htu/athchecks - Outbound DPoP proof generation with nonce retry and a pluggable nonce store
- Circuit breaker around authorization-server calls
- Token caching with TTL buffers
- Official MCP .NET SDK →
Authplane.Mcp
- Structured logging via
Microsoft.Extensions.Loggingacross JWKS refresh, metadata discovery, circuit breaker transitions, token verification, and DPoP binding outcomes - Strict nullable annotations and immutable
VerifiedClaims
- Core SDK:
src/Authplane/README.md· User Guide - MCP adapter:
src/Authplane.Mcp/README.md· User Guide - Release history:
CHANGELOG.md - Security policy:
SECURITY.md - Contributing:
CONTRIBUTING.md - Release policy:
RELEASE_POLICY.md - Release runbook:
RELEASE_SETUP.md
Apache-2.0 — see LICENSE.