Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtMiddleware ¶
JwtMiddleware witholds jwt issuer and secret
func NewJwtMiddleware ¶
func NewJwtMiddleware(issuer, secret string) *JwtMiddleware
NewJwtMiddleware returns a new pointer reference to a JwtMiddleware
func (*JwtMiddleware) Handler ¶
func (m *JwtMiddleware) Handler(next http.HandlerFunc) http.HandlerFunc
Handler is the jwt middleware handler function. It extracts a jwt token from a request header and asserts it is still valid in a middleware chain
Click to show internal directories.
Click to hide internal directories.