Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Configs = configset.Set[Config]{ Default: &Config{}, Dev: &Config{ GoogleOAuth: oauth2Config{ RedirectURL: "http://localhost:9980/auth/google/callback", Cookie: &gologin.DebugOnlyCookieConfig, }, GithubOAuth: oauth2Config{ RedirectURL: "http://localhost:9980/auth/github/callback", Cookie: &gologin.DebugOnlyCookieConfig, }, }, }
Functions ¶
func RedirectToLogin ¶
Types ¶
type Config ¶
type Config struct { GoogleOAuth oauth2Config `koanf:"google_oauth"` GithubOAuth oauth2Config `konf:"github_oauth"` Descope descopeConfig `koanf:"descope"` // Allowed login patterns, separated by commas. // Pattern format is either of: // - "*" - matches any login // - "*@host" - matches any login from host // - otherwise - matches exact login AllowedLogins string `koanf:"allowed_logins"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.