mirror of
https://forgejo.merr.is/annika/jwtauth.git
synced 2025-12-11 11:16:32 -05:00
Add dependency note in README
This commit is contained in:
parent
1e267ab0c7
commit
e2d303f666
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue