Add dependency note in README

This commit is contained in:
Peter Kieltyka 2017-07-06 16:39:18 -04:00
parent 1e267ab0c7
commit e2d303f666

View file

@ -4,6 +4,10 @@ jwtauth - JWT authentication middleware for Go HTTP services
The `jwtauth` http middleware package provides a simple way to verify a JWT token
from a http request and send the result down the request context (`context.Context`).
Please note, `jwtauth` works with any Go http router, but resides under the go-chi group
for maintenance and organization - its only 3rd party dependency is the underlying jwt library
"github.com/dgrijalva/jwt-go".
This package uses the new `context` package in Go 1.7 stdlib and [net/http#Request.Context](https://golang.org/pkg/net/http/#Request.Context) to pass values between handler chains.
In a complete JWT-authentication flow, you'll first capture the token from a http