schemes

package
v0.0.0-...-7266989 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2017 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 JWTScheme

type JWTScheme struct {
	Secret       []byte
	ValidateFunc func(claims jwt.MapClaims) (interface{}, error)
}

JWTScheme is an authentication scheme using JWT tokens.

func (*JWTScheme) Authenticate

func (s *JWTScheme) Authenticate(w http.ResponseWriter, r *http.Request) (interface{}, error)

Authenticate extracts and parses the JWT token from a requests authorization header.

Jump to

Keyboard shortcuts

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