README to note jwt-go dep

This commit is contained in:
Peter Kieltyka 2016-09-13 11:34:21 -04:00
parent db8fa45708
commit 04d0f4ea61

View file

@ -4,6 +4,11 @@ jwtauth - JWT middleware for Go 1.7+ HTTP services
The `jwtauth` middleware is a simple way to verify a JWT token from a request
and send the result down the request context (`context.Context`).
**NOTE:** `jwtauth` requires [v2.7.0](https://github.com/dgrijalva/jwt-go/tree/v2.7.0) of the
`github.com/dgrijalva/jwt-go` dependency. Please make sure to vendor the correct version
into your project. There is a PR https://github.com/goware/jwtauth/pull/8 to support v3.0.0,
and it's quite close, but it needs another review after recent updates to jwt-go.
This package uses the new `context` package in Go 1.7 also used by `net/http`
to manage request contexts.