jwtauthfunc

package module
v0.0.0-...-943b86f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer struct {
	// contains filtered or unexported fields
}

Authorizer is the private keyspace that validates stuff.

func New

func New(parser *jwt.Parser, kf jwt.Keyfunc) (*Authorizer, error)

New gets me a struct into which I inject my parser and an authfunc.

func (*Authorizer) Authorize

func (a *Authorizer) Authorize(ctx context.Context) (context.Context, error)

Authorize is the method used to actually authorize

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL