Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestLogger ¶
Types ¶
type AppConfig ¶
type AppConfig struct { RedirectURI string Name string IdentifierURI string SecretValidityMonths int }
func GetTestConfig ¶
func GetTestConfig() AppConfig
type Provider ¶
type Provider interface { CreateOrUpdateApp(AppConfig, context.Context, dex.Connector) (ProviderApp, error) DeleteApp(string, context.Context) error GetCredentialsForAuthenticatedApp(AppConfig) (map[string]string, error) CleanCredentialsForAuthenticatedApp(AppConfig) error GetName() string GetProviderName() string GetOwner() string GetType() string }
type ProviderCredential ¶
type ProviderCredential struct { Name string `yaml:"name"` Owner string `yaml:"owner"` Credentials map[string]string `yaml:"credentials"` }
func GetTestCredential ¶
func GetTestCredential() ProviderCredential
func ReadCredentials ¶
func ReadCredentials(fileLocation string) ([]ProviderCredential, error)
Click to show internal directories.
Click to hide internal directories.