config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackingCacheTypeInMemory = "in-memory"
	BackingCacheTypeRedis    = "redis"
)

Variables

View Source
var ConfigDefaultJSON = []byte(``)

Functions

This section is empty.

Types

type BackingCacheConfig

type BackingCacheConfig struct {
	Type          string              `json:"type"`
	InMemoryCache InMemoryCacheConfig `json:"inMemoryCache"`
}

type Config

type Config struct {
	fluffycore_contracts_config.CoreConfig `mapstructure:",squash"`

	ConfigFiles               ConfigFiles                             `json:"configFiles"`
	JWTValidators             JWTValidators                           `json:"jwtValidators"`
	DDProfilerConfig          *fluffycore_contracts_ddprofiler.Config `json:"ddProfilerConfig"`
	Echo                      *EchoConfig                             `json:"echo"`
	InMemoryClients           InMemoryClients                         `json:"inMemoryClients"`
	OIDCConfig                *OIDCConfig                             `json:"oidcConfig"`
	BackingCache              *BackingCacheConfig                     `json:"backingCache"`
	AutolinkOnEmailMatch      bool                                    `json:"autolinkOnEmailMatch"`
	EmailVerificationRequired bool                                    `json:"emailVerificationRequired"`
	EmailConfig               *contracts_email.EmailConfig            `json:"emailConfig"`
	SelfIDPConfig             *SelfIDPConfig                          `json:"selfIDPConfig"`
	CookieConfig              *CookieConfig                           `json:"cookieConfig"`
	SystemConfig              *SystemConfig                           `json:"systemConfig"`
	SessionConfig             *contracts_sessions.SessionConfig       `json:"sessionConfig"`
}

type ConfigFiles

type ConfigFiles struct {
	OIDCClientPath     string `json:"oidcClientPath"`
	IDPsPath           string `json:"idpsPath"`
	SigningKeyJsonPath string `json:"signingKeyJsonPath"`
	RagePath           string `json:"ragePath"`
	SeedUsersPath      string `json:"seedUsersPath"`
}

type CookieConfig

type CookieConfig struct {
	Domain string `json:"domain"`
}

type EchoConfig

type EchoConfig struct {
	Port                 int                                                    `json:"port"`
	SecureCookies        *fluffycore_echo_contracts_cookies.SecureCookiesConfig `json:"secureCookies"`
	DisableSecureCookies bool                                                   `json:"disableSecureCookies"`
}

type InMemoryCacheConfig

type InMemoryCacheConfig struct {
	DefaultExpirationSeconds int `json:"defaultExpirationSeconds"`
	CleanupIntervalSeconds   int `json:"cleanupIntervalSeconds"`
}

type InMemoryClient

type InMemoryClient struct {
	Secret   string `json:"secret"`
	ClientId string `json:"clientId"`
}

type InMemoryClients

type InMemoryClients struct {
	Clients []*proto_oidc_models.Client `json:"clients"`
}

type InitialConfig

type InitialConfig struct {
	ConfigFiles ConfigFiles `json:"configFiles"`
}

type JWTValidators

type JWTValidators struct {
	Issuers  []string `json:"issuers"`
	JWKSURLS []string `json:"jwksUrls"`
}

type OIDCConfig

type OIDCConfig struct {
	BaseUrl            string `json:"baseUrl"`
	OAuth2CallbackPath string `json:"oauth2CallbackPath"`
}

type SelfIDPConfig

type SelfIDPConfig struct {
	ClientID     string   `json:"clientId"`
	ClientSecret string   `json:"clientSecret"`
	RedirectURL  string   `json:"redirectUrl"`
	Authority    string   `json:"authority"`
	Scopes       []string `json:"scopes"`
}

type SystemConfig

type SystemConfig struct {
	DeveloperMode bool   `json:"developerMode"`
	Domain        string `json:"domain"`
}

Jump to

Keyboard shortcuts

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