Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAuthHeader ¶
ParseAuthHeader returns a username and password from a list of Auth header Supported type are "basic" and "password". Example
basic user:password password base64EncodedPassword
TODO(melvin): support multiple realm
func SetWWWAuthenticate ¶
func SetWWWAuthenticate(res http.ResponseWriter, typ, realm string)
SetWWWAuthenticate set an auth error to the response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.