Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonymousAuthConfig ¶ added in v0.2.0
type AuthConfig ¶
type AuthConfig struct {
Providers map[string]*OAuthProviderConfig `mapstructure:"providers"`
}
type Config ¶
type Config struct {
Server struct {
Port int `mapstructure:"port"`
Host string `mapstructure:"host"`
RootURL string `mapstructure:"root_url"`
CustomResponseHeaders map[string]string `mapstructure:"customer_response_headers"`
} `mapstructure:"server"`
Database struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
Name string `mapstructure:"name"`
SSLMode string `mapstructure:"sslmode"`
MaxConns int `mapstructure:"max_conns"`
IdleConns int `mapstructure:"idle_conns"`
ConnLifetime int `mapstructure:"conn_lifetime"`
} `mapstructure:"database"`
Logging struct {
Level string `mapstructure:"level"`
Format string `mapstructure:"format"`
} `mapstructure:"logging"`
Auth struct {
Providers map[string]*OAuthProviderConfig `mapstructure:"providers"`
Anonymous AnonymousAuthConfig `mapstructure:"anonymous"`
} `mapstructure:"auth"`
}
Config holds all configuration for the application
type GroupMapConfig ¶
type OAuthProviderConfig ¶
type OAuthProviderConfig struct {
Enabled bool `mapstructure:"enabled"`
Type string `mapstructure:"type"`
Name string `mapstructure:"name"`
ClientID string `mapstructure:"client_id"`
ClientSecret string `mapstructure:"client_secret"`
URL string `mapstructure:"url"`
RedirectURL string `mapstructure:"redirect_url"`
Scopes []string `mapstructure:"scopes"`
AllowSignup bool `mapstructure:"allow_signup"`
GroupMapping []GroupMapConfig `mapstructure:"group_mapping"`
}
Click to show internal directories.
Click to hide internal directories.