Top 0.4% dependent packages on proxy.golang.org
Top 0.4% dependent repos on proxy.golang.org
Top 6.1% forks on proxy.golang.org
Top 0.8% docker downloads on proxy.golang.org
proxy.golang.org : github.com/kataras/jwt
Package jwt provides a comprehensive, high-performance implementation of JSON Web Tokens (JWT) as defined in RFC 7519, with full support for JSON Web Algorithms (JWA) from RFC 7518. This library delivers a complete JWT solution with emphasis on security, performance, and ease of use. It supports all major cryptographic algorithms, provides extensive validation capabilities, and offers flexible APIs for both simple and advanced use cases. • **Algorithm Support**: Complete implementation of JWT algorithms • **JSON Web Key Set (JWKS)**: Full RFC 7517 compliance • **Claims Validation**: Comprehensive RFC 7519 compliance • **Performance**: Optimized for high-throughput applications • **Security**: Enterprise-grade security features The library is built around several core concepts: **Token Lifecycle**: **Key Management**: **Validation Framework**: ## Basic HMAC Usage ## RSA Public Key Usage ## Multi-Key Verification with JWKS ## Advanced Claims Validation The library provides full support for RFC 7519 standard claims: • **exp** (Expiration Time): Token expiry validation • **nbf** (Not Before): Token validity start time • **iat** (Issued At): Token creation time • **iss** (Issuer): Token issuer validation • **sub** (Subject): Token subject identification • **aud** (Audience): Intended token audience • **jti** (JWT ID): Unique token identifier Example with standard claims: **Algorithm Selection**: **Key Management**: **Validation**: **Implementation**: This library is optimized for high-throughput applications: **Benchmarks** (compared to similar libraries): **Optimizations**: ## Web Middleware ## API Gateway Integration The library provides detailed error information for debugging and monitoring: The library includes comprehensive testing utilities: **Project Home**: https://github.com/kataras/jwt **Examples**: https://github.com/kataras/jwt/tree/main/_examples **Benchmarks**: https://github.com/kataras/jwt/tree/main/_benchmarks **Documentation**: https://pkg.go.dev/github.com/kataras/jwt This library implements the following RFCs and standards: • **RFC 7519**: JSON Web Token (JWT) • **RFC 7515**: JSON Web Signature (JWS) • **RFC 7516**: JSON Web Encryption (JWE) - partial • **RFC 7517**: JSON Web Key (JWK) • **RFC 7518**: JSON Web Algorithms (JWA) • **RFC 8037**: CFRG Elliptic Curve Diffie-Hellman (ECDH) and Signatures in JSON Object Signing and Encryption (JOSE) The implementation is tested against official test vectors and interoperates with major JWT libraries and identity providers.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/kataras/jwt
Keywords:
go
, golang
, json-web-token
, jsonwebtoken
, jwt
, security
, web
License: MIT
Latest release: 2 months ago
First release: almost 5 years ago
Namespace: github.com/kataras
Dependent packages: 162
Dependent repositories: 374
Stars: 208 on GitHub
Forks: 22 on GitHub
Docker dependents: 51
Docker downloads: 192,465
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/kataras
Last synced: 6 days ago