Skip to content

Releases: go-chi/jwtauth

v5.1.0

13 Nov 16:35
c5c2c95
Compare
Choose a tag to compare
  • Upgrading to latest version of underlining jwt library github.com/lestrrat-go/jwx/v2 via #73
  • Set minimum Go version of this library to Go 1.18, as that is the jwx/v2 minimum

v5.0.1

30 Mar 18:21
Compare
Choose a tag to compare

Update jwx library in go.mod

v5.0.0

28 Feb 00:24
Compare
Choose a tag to compare
  • SIV, yeay

v1.2.0

31 Jan 21:39
52c0aa2
Compare
Choose a tag to compare
  • Upgrade jwx dependency to its latest, v1.1.0

v1.1.1

12 Dec 19:57
Compare
Choose a tag to compare

Update Verifier for locating jwt token; removing TokenFromQuery from defaults

v1.1.0 - new jwt dependency

12 Dec 14:45
b8af768
Compare
Choose a tag to compare

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:

  1. Use jwt.Token instead of *jwt.Token
  2. Use tokenString from (*JWTAuth).Encode() instead of jwt.Raw
  3. Use map[string]interface{} instead of jwt.MapClaims{}
  4. Use jwtauth.New() instead of jwtauth.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

07 Dec 03:35
Compare
Choose a tag to compare

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

28 Feb 16:38
53a0a48
Compare
Choose a tag to compare
Merge pull request #26 from slax0rr/master

Truly support jwtauth.Claims when parsing from context

Maintenance release

18 Jan 04:45
Compare
Choose a tag to compare
  • 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 returns ErrNoTokenFound error in case that no token was found using findTokenFns
  • FromContext() function now supports jwtauth.Claims type

Compatible with github.com/dgrijalva/jwt-go v3.1.0

20 Oct 15:23
Compare
Choose a tag to compare
Fix #1: Update to github.com/dgrijalva/jwt-go v3.1.0

https://github.com/dgrijalva/jwt-go/issues/221