ssosettingsimpl

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSecretField

func IsSecretField(fieldName string) bool

IsSecretField returns true if the SSO settings field provided is a secret

Types

type Service

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

func ProvideService

func ProvideService(cfg *setting.Cfg, sqlStore db.DB, ac ac.AccessControl,
	routeRegister routing.RouteRegister, features featuremgmt.FeatureToggles,
	secrets secrets.Service, usageStats usagestats.Service, registerer prometheus.Registerer,
	settingsProvider setting.Provider, licensing licensing.Licensing) *Service

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, provider string) error

func (*Service) GetForProvider

func (s *Service) GetForProvider(ctx context.Context, provider string) (*models.SSOSettings, error)

func (*Service) GetForProviderWithRedactedSecrets

func (s *Service) GetForProviderWithRedactedSecrets(ctx context.Context, provider string) (*models.SSOSettings, error)

func (*Service) List

func (s *Service) List(ctx context.Context) ([]*models.SSOSettings, error)

func (*Service) ListWithRedactedSecrets

func (s *Service) ListWithRedactedSecrets(ctx context.Context) ([]*models.SSOSettings, error)

func (*Service) Patch

func (s *Service) Patch(ctx context.Context, provider string, data map[string]any) error

func (*Service) RegisterFallbackStrategy

func (s *Service) RegisterFallbackStrategy(providerRegex string, strategy ssosettings.FallbackStrategy)

func (*Service) RegisterReloadable

func (s *Service) RegisterReloadable(provider string, reloadable ssosettings.Reloadable)

func (*Service) Reload

func (s *Service) Reload(ctx context.Context, provider string)

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

func (*Service) Upsert

func (s *Service) Upsert(ctx context.Context, settings *models.SSOSettings, requester identity.Requester) error

Jump to

Keyboard shortcuts

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