Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Basic ¶
func Basic(username string, password string) http.HandlerFunc
Basic returns a Handler that authenticates via Basic Auth. Writes a http.StatusUnauthorized if authentication fails
func SecureCompare ¶
SecureCompare performs a constant time compare of two strings to limit timing attacks.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.