Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAPIKeyName ¶
func WithAPIKeyName(apiKeyName, apiKeyPrivateKey string) apiKeyOption
WithAPIKeyName returns an option to set the API Key.
func WithLoadAPIKeyFromEnv ¶
func WithLoadAPIKeyFromEnv(loadAPIKeyFromEnv bool) apiKeyOption
WithLoadAPIKeyFromEnv returns an option to set whether or not to load the API Key from environment variables. If the API Key name and private key are both set, they take precedence over the environment variables.
Types ¶
type APIKeyClaims ¶
APIKeyClaims holds public claim values for a JWT, as well as a URI.
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator builds a JWT based on the APIKey.
func NewAuthenticator ¶
func NewAuthenticator(apiKey *APIKey) *Authenticator
NewAuthenticator returns a new Authenticator.
Click to show internal directories.
Click to hide internal directories.