simpleprovider

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName        = "simple"
	ProviderDisplayName = "Simple Provider"
	ProviderType        = "simple"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidcConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

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 (*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 (s *SimpleProvider) GetCredentialsForAuthenticatedApp(config provider.AppConfig) (map[string]string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL