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

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

  • OAuth 2.0 and OIDC providers
  • Email and passwordless sign-in
  • WebAuthn passkey support
TypeScriptDetails →
★ 28.4k⟳ 4 months agoISC
Open Source Alternative to:Amazon CognitoAuth0+4

Devise

Modular authentication engine for Ruby on Rails

Devise adds sign-in, registration, and related account flows to Rails apps through a Warden-backed engine. Teams enable only the authentication modules they need for each user model.

  • Rack and Warden integration
  • Pluggable authentication modules
  • Rails engine MVC stack
RubyDetails →
★ 24.3k⟳ 1 month agoMIT

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.

  • Login and permission annotations
  • Distributed session with Redis
  • Built-in SSO mode variants
JavaDetails →
★ 19.1k⟳ 16 days agoApache-2.0

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.

  • JWT sign and verify APIs
  • HMAC and asymmetric algorithms
  • Standard claim options
JavaScriptDetails →
★ 18.2k⟳ 5 months agoMIT

JustAuth

Java library for third-party OAuth login

JustAuth is a Java component that wires social and enterprise OAuth providers into applications without vendor-specific SDKs. It exposes a small API with builder-style configuration.

  • Dozens of built-in OAuth providers
  • Builder and plain API styles
  • Custom OAuth platform adapters
JavaDetails →
★ 17.6k⟳ 1 year agoMIT
Identity & Access Management (IAM)No commits in 18+ months

laravel-permission

Laravel roles and permissions management package

A Laravel package that stores roles and permissions in your database and wires them to users, with helpers to assign capabilities and check access through Laravel's gate and Blade.

  • Database-backed roles and permissions
  • Assign permissions and roles to users
  • Permissions registered on Laravel gate
PHPDetails →
★ 13k⟳ 3 days agoMIT