Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHeaderFormat is returned when the authorization header doesn't // contain 2 fields separated by whitespace. ErrHeaderFormat = errors.New("incorrect authorization header format") // ErrEmptyHeader is returned when the authorization header is not set ErrEmptyHeader = errors.New("empty authorization header") // ErrUnsupportedScheme is returned when the scheme is either not bearer nor the set custom scheme ErrUnsupportedScheme = errors.New("unsupported authorization scheme") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) LoadBearer ¶
LoadBearer loads a stateful session using the session from key the authorization header.
func (*Store) LoadHeadless ¶
LoadHeadless loads a stateless session from the encoded token in the authorization header.
Click to show internal directories.
Click to hide internal directories.