Documentation
¶
Index ¶
Constants ¶
View Source
const (
MaxGroups = 100
)
View Source
const (
TransactionTimeout = time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func GetEmailDomain ¶
Types ¶
type Config ¶
type Config struct {
Provider ProviderConfig `yaml:"provider" json:"provider"`
Proxy ProxyConfig `yaml:"proxy" json:"proxy"`
Server ServerConfig `yaml:"server" json:"server"`
}
func (*Config) ValidateAndInitialize ¶
type HostConfig ¶
type ProviderConfig ¶
type ProviderConfig struct {
Name string `yaml:"name" json:"name"`
ClientID string `yaml:"clientID" json:"clientID"`
ClientSecret string `yaml:"clientSecret" json:"clientSecret"`
Organization string `yaml:"organization" json:"organization"`
AllowedEmailDomains []string `yaml:"allowedEmailDomains" json:"allowedEmailDomains"`
// contains filtered or unexported fields
}
func (*ProviderConfig) ValidateEmailDomain ¶
func (p *ProviderConfig) ValidateEmailDomain(email string) bool
type ProxyConfig ¶
type ProxyConfig struct {
Hosts []*HostConfig `yaml:"hosts" json:"hosts"`
DisableConsentScreen bool `yaml:"disableConsentScreen" json:"disableConsentScreen"`
AllowedRedirectURLs []string `yaml:"allowedRedirectURLs" json:"allowedRedirectURLs"`
CORS bool `yaml:"cors" json:"cors"`
// contains filtered or unexported fields
}
func (*ProxyConfig) AcceptsHost ¶
func (p *ProxyConfig) AcceptsHost(host string) bool
func (*ProxyConfig) SupportedScopes ¶
func (p *ProxyConfig) SupportedScopes(ctx context.Context, host string) ([]string, []ScopeConfig, error)
func (*ProxyConfig) ValidateRedirectURL ¶
func (p *ProxyConfig) ValidateRedirectURL(url string) bool
type ScopeConfig ¶
type ServerConfig ¶
type ServerConfig struct {
Addr string `yaml:"addr" json:"addr"`
}
Click to show internal directories.
Click to hide internal directories.