talira

golang-jwt

Go implementation of JSON Web Tokens

open sourceMITfree

golang-jwt (jwt-go) is a Go library for JSON Web Tokens: it parses and verifies JWTs and generates and signs them, with HMAC-SHA, RSA, RSA-PSS, ECDSA and EdDSA signing and hooks for adding your own. A team of maintainers cloned it from the original dgrijalva/jwt-go to keep it maintained, adding Go module support while staying compatible with the old import path's v3 tags; v5 brought major improvements to token validation. It is MIT licensed.

Problems it solves

  • issue and check JSON Web Tokens in my Go API
  • verify a bearer token from an identity provider in Go
  • replace the unmaintained dgrijalva/jwt-go in my Go project

Features

  • parse and verify JWTs
  • generate and sign JWTs
  • HMAC-SHA, RSA, RSA-PSS, ECDSA and EdDSA signing
  • hooks for custom signing methods

Alternatives

The same job

These do what golang-jwt does.

  1. go-oidc OpenID Connect client for Go's golang.org/x/oauth2

Compare golang-jwt with the top 3