auth

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

View Source
const TokenKey key = 0

Variables

This section is empty.

Functions

func Auth

func Auth(rw http.ResponseWriter, req *http.Request) bool

func AuthHttpInterceptor added in v0.6.0

func AuthHttpInterceptor(router http.Handler) http.Handler

func GetAndCheckToken added in v0.17.0

func GetAndCheckToken(tokenString string) (*jwt.Token, bool)

func GetToken added in v0.4.0

func GetToken(r *http.Request) *jwt.Token

func SetToken added in v0.4.0

func SetToken(r *http.Request, val *jwt.Token)

Types

This section is empty.

Jump to

Keyboard shortcuts

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