Provides implementations for Basic Auth, Bearer tokens, and API keys to allow developers to easily inject security credentials into outgoing HTTP requests.
// Source: https://github.com/oapi-codegen/oapi-codegen | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Package securityprovider contains some default securityprovider
// implementations, which can be used as a RequestEditorFn of a
// client.
package securityprovider
import (
"context"
"fmt"
"net/http"
)
const (
// ErrSecurityProviderApiKeyInvalidIn indicates a usage of an invalid In.
// Should be cookie, header or query
ErrSecurityProviderApiKeyInvalidIn = SecurityProviderError("invalid 'in' specified for apiKey")
)
// SecurityProviderError defines error values of a security provider.
type SecurityProviderError string
// Error implements the error interface.
func (e
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key