Documentation ¶
Index ¶
- Constants
- func IsInvalidConfig(err error) bool
- type Config
- type SimpleProvider
- func (s *SimpleProvider) CleanCredentialsForAuthenticatedApp(config provider.AppConfig) error
- func (s *SimpleProvider) CreateOrUpdateApp(config provider.AppConfig, ctx context.Context, oldConnector dex.Connector) (provider.ProviderApp, error)
- func (s *SimpleProvider) DeleteApp(name string, ctx context.Context) error
- func (s *SimpleProvider) DeleteAuthenticatedApp(config provider.AppConfig) error
- func (s *SimpleProvider) GetCredentialsForAuthenticatedApp(config provider.AppConfig) (map[string]string, error)
- func (s *SimpleProvider) GetName() string
- func (s *SimpleProvider) GetOwner() string
- func (s *SimpleProvider) GetProviderName() string
- func (s *SimpleProvider) GetType() string
Constants ¶
View Source
const ( ProviderName = "simple" ProviderDisplayName = "Simple Provider" ProviderType = "simple" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidcConfig asserts invalidConfigError.
Types ¶
type SimpleProvider ¶
type SimpleProvider struct { Log *logr.Logger Name string Description string Type string Owner string ConnectorType string ConnectorConfig string }
The simple provider is a provider that can be used if no idp access is configured for the operator. It can also be used in case the idp in question is not supported by the operator. It will create a connector with the given type and config.
func New ¶
func New(p provider.ProviderCredential, log *logr.Logger) (*SimpleProvider, error)
func (*SimpleProvider) CleanCredentialsForAuthenticatedApp ¶
func (s *SimpleProvider) CleanCredentialsForAuthenticatedApp(config provider.AppConfig) error
func (*SimpleProvider) CreateOrUpdateApp ¶
func (s *SimpleProvider) CreateOrUpdateApp(config provider.AppConfig, ctx context.Context, oldConnector dex.Connector) (provider.ProviderApp, error)
func (*SimpleProvider) DeleteApp ¶
func (s *SimpleProvider) DeleteApp(name string, ctx context.Context) error
func (*SimpleProvider) DeleteAuthenticatedApp ¶
func (s *SimpleProvider) DeleteAuthenticatedApp(config provider.AppConfig) error
func (*SimpleProvider) GetCredentialsForAuthenticatedApp ¶
func (*SimpleProvider) GetName ¶
func (s *SimpleProvider) GetName() string
func (*SimpleProvider) GetOwner ¶
func (s *SimpleProvider) GetOwner() string
func (*SimpleProvider) GetProviderName ¶
func (s *SimpleProvider) GetProviderName() string
func (*SimpleProvider) GetType ¶
func (s *SimpleProvider) GetType() string
Click to show internal directories.
Click to hide internal directories.