Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityProvider ¶
type IdentityProvider interface { GetRealm() string GetName() string GetKind() string GetConfig() map[string]interface{} Configure() error Configured() bool Request(operator.Type, *requests.Request) error GetIconName() string GetIconText() string GetIconColor() string }
IdentityProvider represents identity provider.
func NewIdentityProvider ¶
func NewIdentityProvider(cfg *IdentityProviderConfig, logger *zap.Logger) (IdentityProvider, error)
NewIdentityProvider returns IdentityProvider instance.
type IdentityProviderConfig ¶
type IdentityProviderConfig struct { Name string `json:"name,omitempty" xml:"name,omitempty" yaml:"name,omitempty"` Kind string `json:"kind,omitempty" xml:"kind,omitempty" yaml:"kind,omitempty"` Params map[string]interface{} `json:"params,omitempty" xml:"params,omitempty" yaml:"params,omitempty"` }
IdentityProviderConfig represents an identity provider configuration.
func NewIdentityProviderConfig ¶
func NewIdentityProviderConfig(name, kind string, params map[string]interface{}) (*IdentityProviderConfig, error)
NewIdentityProviderConfig returns IdentityProviderConfig instance.
func (*IdentityProviderConfig) Validate ¶
func (cfg *IdentityProviderConfig) Validate() error
Validate validates identity provider config.
type IdentityProviderType ¶
type IdentityProviderType int
IdentityProviderType identifies identity provider type.
const ( // UNKNOWN identifies unknown identity provider type. UNKNOWN IdentityProviderType = iota // OAUTH identifies OAuth-based identity provider. OAUTH // SAML identifies SAML-based identity provider. SAML )
func (IdentityProviderType) String ¶
func (m IdentityProviderType) String() string
String returns the description for IdentityProviderType enum.
Click to show internal directories.
Click to hide internal directories.