Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKeyAuth ¶
func APIKeyAuth(name, in string, authenticate TokenAuthentication) httpkit.Authenticator
APIKeyAuth creates an authenticator that uses a token for authorization. This token can be obtained from either a header or a query string
func BasicAuth ¶
func BasicAuth(authenticate UserPassAuthentication) httpkit.Authenticator
BasicAuth creates a basic auth authenticator with the provided authentication function
Types ¶
type TokenAuthentication ¶
TokenAuthentication authentication function
type UserPassAuthentication ¶
UserPassAuthentication authentication function
Click to show internal directories.
Click to hide internal directories.