From 04d0f4ea61a595e91b36047de7f0ed84501411e5 Mon Sep 17 00:00:00 2001 From: Peter Kieltyka Date: Tue, 13 Sep 2016 11:34:21 -0400 Subject: [PATCH] README to note jwt-go dep --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 2f117c9..94597a7 100644 --- a/README.md +++ b/README.md @@ -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.