Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type Session ¶
type Session struct { TTL time.Duration `env-required:"true" yaml:"ttl" env:"SESSION_TTL"` CookieKey string `env-required:"true" yaml:"cookie_key" env:"SESSION_COOKIE_KEY"` CookieDomain string `yaml:"cookie_domain" env:"SESSION_COOKIE_DOMAIN"` CookieSecure bool `yaml:"cookie_secure" env:"SESSION_COOKIE_SECURE"` CookieHTTPOnly bool `yaml:"cookie_httponly" env:"SESSION_COOKIE_HTTPONLY"` }
type SocialAuth ¶
type SocialAuth struct { GitHubClientID string `yaml:"github_client_id" env-required:"true" env:"GH_CLIENT_ID"` GitHubClientSecret string `env-required:"true" env:"GH_CLIENT_SECRET"` GitHubScope string `yaml:"github_scope" env-required:"true" env:"GH_SCOPE"` GoogleClientID string `yaml:"google_client_id" env-required:"true" env:"GOOGLE_CLIENT_ID"` GoogleClientSecret string `env-required:"true" env:"GOOGLE_CLIENT_SECRET"` GoogleScope string `yaml:"google_scope" env-required:"true" env:"GOOGLE_SCOPE"` }
func (*SocialAuth) ClientIDs ¶
func (sa *SocialAuth) ClientIDs() map[string]string
func (*SocialAuth) ClientSecrets ¶
func (sa *SocialAuth) ClientSecrets() map[string]string
func (*SocialAuth) Scopes ¶
func (sa *SocialAuth) Scopes() map[string]string
Click to show internal directories.
Click to hide internal directories.