providers

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("provider not found")
)

Functions

func NewProvidersController

func NewProvidersController(logger logging.Logger, config Config, authFlow authflow.AuthenticationFlow, callback common.CallbackConfig) (common.Controller, error)

Types

type Config

type Config struct {
	OpenIDConnect []openid.OIDCConfig
	Mock          []mock.Config
}

func LoadConfig

func LoadConfig(file string, logger logging.Logger) (*Config, error)

type Repository

type Repository interface {
	List() ([]common.ProviderConfig, error)
	Get(providerID string) (*common.ProviderConfig, error)

	GetAll(providers []string) ([]client.Provider, error)
}

func NewConfigFileRepository

func NewConfigFileRepository(logger logging.Logger, config Config) (Repository, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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