Documentation ¶
Index ¶
Constants ¶
View Source
const CookieName = "ATC-Authorization"
Variables ¶
View Source
var ErrUnparsableHeader = errors.New("cannot parse 'Authorization' header")
Functions ¶
func Unauthorized ¶
func Unauthorized(w http.ResponseWriter)
Types ¶
type BasicAuthHashedValidator ¶
func (BasicAuthHashedValidator) IsAuthenticated ¶
func (validator BasicAuthHashedValidator) IsAuthenticated(r *http.Request) bool
type BasicAuthValidator ¶
func (BasicAuthValidator) IsAuthenticated ¶
func (validator BasicAuthValidator) IsAuthenticated(r *http.Request) bool
type CookieSetHandler ¶
func (CookieSetHandler) ServeHTTP ¶
func (handler CookieSetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type NoopValidator ¶
type NoopValidator struct{}
func (NoopValidator) IsAuthenticated ¶
func (NoopValidator) IsAuthenticated(*http.Request) bool
Click to show internal directories.
Click to hide internal directories.