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 GitHub ¶
func GitHub(secret string) http.HandlerFunc
GitHub returns a Handler that authenticates via GitHub's Authorization for Webhooks scheme (https://developer.github.com/webhooks/securing/#validating-payloads-from-github)
Writes a http.StatusUnauthorized if authentication fails
func SecureCompare ¶
SecureCompare performs a constant time compare of two strings to limit timing attacks.
func TravisCI ¶
func TravisCI(token string) http.HandlerFunc
TravisCI returns a Handler that authenticates via Travis's Authorization for Webhooks scheme (http://docs.travis-ci.com/user/notifications/#Authorization-for-Webhooks)
Writes a http.StatusUnauthorized if authentication fails
Types ¶
This section is empty.