Releases: go-chi/jwtauth
v5.1.0
v5.0.1
v5.0.0
v1.2.0
v1.1.1
v1.1.0 - new jwt dependency
This release has a few breaking changes to the API as we're switching from the underlying jwt library github.com/dgrijalva/jwt-go
to github.com/lestrrat-go/jwx
. See #50 for further details + discussion.
Migration guide is pretty straight forward:
- Use
jwt.Token
instead of*jwt.Token
- Use
tokenString
from(*JWTAuth).Encode()
instead ofjwt.Raw
- Use
map[string]interface{}
instead ofjwt.MapClaims{}
- Use
jwtauth.New()
instead ofjwtauth.NewWithParser()
Please see _example and jwtauth_test.go for more details. As well to view more docs on the new jwt lib see https://github.com/lestrrat-go/jwx and https://github.com/lestrrat-go/jwx/blob/master/jwt/README.md
NOTE: https://github.com/golang-cz/jwtauth is a fork of this repository without the above breaking changes. It uses github.com/golang-jwt/jwt
, a successor to github.com/dgrijalva/jwt-go
pkg, instead of the new github.com/lestrrat-go/jwx
dependency.
v1.0.0 with go.mod support
jwtauth now ships with go.mod support with version v1.0.0
See https://github.com/go-chi/chi/blob/master/CHANGELOG.md#v150-2020-11-12---now-with-gomod-support for more information on the version reset.
Bugfix release; fixing regression in v3.2.0
Merge pull request #26 from slax0rr/master Truly support jwtauth.Claims when parsing from context
Maintenance release
- There was a minor, but API-breaking change in v3.1.3. Sorry for the inconvenience.
You can simply search & replace:
- jwtauth.JwtAuth
+ jwtauth.JWTAuth
VerifyRequest()
now returnsErrNoTokenFound
error in case that no token was found usingfindTokenFns
FromContext()
function now supportsjwtauth.Claims
type
Compatible with github.com/dgrijalva/jwt-go v3.1.0
Fix #1: Update to github.com/dgrijalva/jwt-go v3.1.0 https://github.com/dgrijalva/jwt-go/issues/221