Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyAuthConfig ¶
type APIKeyAuthConfig struct {
Enabled bool `json:"enabled,omitempty" xml:"enabled,omitempty" yaml:"enabled,omitempty"`
Realms map[string]interface{} `json:"realms,omitempty" xml:"realms,omitempty" yaml:"realms,omitempty"`
}
APIKeyAuthConfig is a config for API key-based authentication.
type BasicAuthConfig ¶
type BasicAuthConfig struct {
Enabled bool `json:"enabled,omitempty" xml:"enabled,omitempty" yaml:"enabled,omitempty"`
Realms map[string]interface{} `json:"realms,omitempty" xml:"realms,omitempty" yaml:"realms,omitempty"`
}
BasicAuthConfig is a config for basic authentication.
type IdentityProviderConfig ¶
type IdentityProviderConfig struct {
Context string `json:"context,omitempty" xml:"context,omitempty" yaml:"context,omitempty"`
BasicAuth BasicAuthConfig `json:"basic_auth,omitempty" xml:"basic_auth,omitempty" yaml:"basic_auth,omitempty"`
APIKeyAuth APIKeyAuthConfig `json:"api_key_auth,omitempty" xml:"api_key_auth,omitempty" yaml:"api_key_auth,omitempty"`
}
IdentityProviderConfig is a config for an identity provider.
func ParseIdentityProviderConfig ¶
func ParseIdentityProviderConfig(lines []string) (*IdentityProviderConfig, error)
ParseIdentityProviderConfig parses configuration into an identity provider config
type Provider ¶
type Provider interface {
BasicAuth(*ProviderRequest) error
APIKeyAuth(*ProviderRequest) error
}
Provider is an interface to an identity provider.
type ProviderCatalog ¶
type ProviderCatalog struct {
// contains filtered or unexported fields
}
ProviderCatalog is a map of identity providers
var ( // Catalog is identity provider catalog. Catalog *ProviderCatalog )
func (*ProviderCatalog) APIKeyAuth ¶
func (c *ProviderCatalog) APIKeyAuth(r *ProviderRequest) error
APIKeyAuth performs API key authentication.
func (*ProviderCatalog) BasicAuth ¶
func (c *ProviderCatalog) BasicAuth(r *ProviderRequest) error
BasicAuth performs basic authentication.
type ProviderRequest ¶
type ProviderRequest struct {
Address string `json:"address,omitempty" xml:"address,omitempty" yaml:"address,omitempty"`
Context string `json:"context,omitempty" xml:"context,omitempty" yaml:"context,omitempty"`
Realm string `json:"realm,omitempty" xml:"realm,omitempty" yaml:"realm,omitempty"`
Secret string `json:"secret,omitempty" xml:"secret,omitempty" yaml:"secret,omitempty"`
Response ProviderResponse `json:"response,omitempty" xml:"response,omitempty" yaml:"response,omitempty"`
}
ProviderRequest is a request to an identity provider.
type ProviderResponse ¶
type ProviderResponse struct {
Name string `json:"name,omitempty" xml:"name,omitempty" yaml:"name,omitempty"`
Payload string `json:"payload,omitempty" xml:"payload,omitempty" yaml:"payload,omitempty"`
}
ProviderResponse is a response from an identity provider.
Click to show internal directories.
Click to hide internal directories.