Documentation
¶
Overview ¶
Package apikey provides an authentication plugin that allows for authentication via apikeys.
Index ¶
Constants ¶
View Source
const ( // PluginName is the name of this plugin. PluginName = "auth_apikey" // Constant nae used as the auth provider in API requests. ProviderName = "apikey" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIOption ¶
type APIOption func(*APIPlugin)
APIOptions allow configuration of the APIPlugin.
func WithKeyFunc ¶
WithKeyFunc sets the function used to fetch the owner of an API key.
func WithKeyPrefix ¶
WithKeyPrefix sets the prefix used to identify API keys.
type APIPlugin ¶
type APIPlugin struct {
PluginName string
// contains filtered or unexported fields
}
APIPlugin is an authentication plugin that allows for api-key based authentication.
Click to show internal directories.
Click to hide internal directories.