qmetrics.net

JWT

.NET library for JSON Web Token encoding and validation

Jwt.Net implements JSON Web Token creation and verification for .NET. NuGet packages cover core usage, dependency injection, and ASP.NET Core authentication.

Overview

Jwt.Net is a .NET library for generating and parsing JSON Web Tokens. Applications use it to sign payloads, verify signatures, and read token headers and claims on .NET Framework, .NET Standard, and modern .NET releases.

Encoding and decoding are available through standard APIs and a fluent builder interface. Parsed payloads can be returned as JSON strings or deserialized to .NET types. Validation covers standard time claims: expiration (exp) and not-before (nbf) per RFC 7519.

Developers can supply a ValidateParameters object to relax specific validation steps, swap in a custom IJsonSerializer instead of the default Json.Net-based serializer, or tune JsonNetSerializer settings. JwtValidator handles verification logic.

Extension packages integrate with Microsoft dependency injection and ASP.NET Core: you can register a JWT authentication handler and customize factories that produce Identity or AuthenticationTicket objects. Multiple NuGet packages ship the core library and these extensions separately.

Key features

  • JWT encoding and decoding
  • Fluent builder API
  • exp and nbf validation
  • Payload deserialization to .NET types
  • Partial validation toggles
  • Custom JSON serializer support
  • ASP.NET Core auth handler package
  • Dependency injection extensions

Use cases

  • API authentication tokens in .NET
  • ASP.NET Core JWT validation
  • Custom claim encoding
  • Token header inspection

Tags

Similar software

Sa-Token

Java lightweight permission and session framework

Sa-Token adds login, permission checks, SSO, OAuth2, and microservice gateway auth to Java web projects with minimal boilerplate.

★ 19.1k⟳ 10 days agoApache-2.0

Node Jsonwebtoken

Node.js library for signing and verifying JSON Web Tokens

jsonwebtoken implements JWT creation and verification for Node.js using HMAC, RSA, ECDSA, and related algorithms. It exposes sign, verify, and decode helpers built on node-jws.

★ 18.2k⟳ 5 months agoMIT
Application SecurityDesktop/CLI app

OAuth2 Proxy

OAuth2 and OIDC reverse proxy authentication

OAuth2 Proxy sits before web apps as reverse proxy or middleware, sends users through OAuth2 or OIDC login, supports many identity providers, and can forward user details to upstream apps as headers

★ 15.4k⟳ 19 days agoMIT

SuperTokens

Open-source user login and session management

SuperTokens adds sign-up, sign-in, and session handling to applications through frontend SDKs, backend SDKs, and a core HTTP auth service.

★ 15.3k⟳ todayApache-2.0 · open core
Open Source Alternative to:Amazon CognitoAuth0+2

Casdoor

Self-hosted identity provider with SSO and agent MCP gateway

Casdoor is an IAM server with a web console for users, apps, and providers. It issues tokens via OAuth, OIDC, SAML, CAS, LDAP, SCIM, and WebAuthn, and exposes an MCP gateway for AI tooling

★ 15k⟳ 2 days agoApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+3

CASL

Isomorphic TypeScript authorization for apps and APIs

CASL limits which resources a user may access using declarative rules shared across frontend, backend, and database layers.

★ 7.1k⟳ 4 days agoMIT
Application SecurityDesktop/CLI app