Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTokenInvalid = errors.New("token is invalid") ErrTokenExpired = errors.New("token is expired") ErrTokenMalformed = errors.New("token is malformed") ErrTokenNotValidYet = errors.New("token is not valid yet") ErrTokenUnverifiable = errors.New("token could not be verified because of signing problems") ErrTokenSignatureValidation = errors.New("signature validation failed") ErrCannotHandle = errors.New("cannot handle this problem") )
Functions ¶
This section is empty.
Types ¶
type CookieOptions ¶
type HttpTokenExtractor ¶
func MakeCookieTokenExtractor ¶
func MakeCookieTokenExtractor(cookieName string) HttpTokenExtractor
func MakeHeaderTokenExtractor ¶
func MakeHeaderTokenExtractor(headerName string, tokenType string) HttpTokenExtractor
type HttpTokenWriter ¶
func MakeCookieTokenWriter ¶
func MakeCookieTokenWriter(cookieName string, cookieOptions CookieOptions) HttpTokenWriter
func MakeHeaderTokenWriter ¶
func MakeHeaderTokenWriter(headerName string, tokenType string) HttpTokenWriter
Click to show internal directories.
Click to hide internal directories.