Documentation
¶
Index ¶
Constants ¶
View Source
const Path string = "/oauth2"
Variables ¶
This section is empty.
Functions ¶
func NewLoginHandler ¶
Types ¶
type ConfigSchema ¶
type ConfigSchema struct {
Providers []ProviderSchema `json:"providers"`
SkipLoginPage bool `json:"skipLoginPage"`
}
func (*ConfigSchema) CreateConfig ¶
func (s *ConfigSchema) CreateConfig() Config
func (*ConfigSchema) Validate ¶
func (s *ConfigSchema) Validate() error
type ProviderSchema ¶
type ProviderSchema struct {
ID string `json:"id"`
ClientID string `json:"clientID"`
ClientSecret string `json:"clientSecret"`
RedirectURL string `json:"redirectURL"`
StartPath string `json:"startPath"`
// スコープの内、"oidc"を除いたもの。oidcは自動追加するため不要
Scopes []string `json:"scopes"`
// IssuerからOIDC Discoveryを使うため、その他の情報は不要
Issuer string `json:"issuer"`
}
Click to show internal directories.
Click to hide internal directories.