Categorygithub.com/pantacor/go-json-rest-middleware-jwt
modulepackage
0.0.0-20190329232506-b7815ffda0af
Repository: https://github.com/pantacor/go-json-rest-middleware-jwt.git
Documentation: pkg.go.dev

# README

JWT Middleware for Go-Json-Rest

Build Status godoc license

This is a middleware for Go-Json-Rest.

It uses jwt-go to provide a jwt authentication middleware. It provides additional handler functions to provide the login api that will generate the token and an additional refresh handler that can be used to refresh tokens.

An example can be found in the Go-Json-Rest Examples repo.

# Functions

ExtractClaims allows to retrieve the payload.

# Structs

JWTMiddleware provides a Json-Web-Token authentication implementation.