Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultConfigAuthPath = "/_auth"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ApiBaseUrl string `json:"api_base_url,omitempty"` ApiSecretKey string `json:"api_secret_key,omitempty"` AuthPath string `json:"auth_path,omitempty"` JwtSecretKey string `json:"jwt_secret_key,omitempty"` LogLevel string `json:"log_level,omitempty"` Whitelist ConfigWhitelist `json:"whitelist,omitempty"` }
Config the middleware configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default middleware configuration.
type ConfigWhitelist ¶
type ConfigWhitelist struct { // Ids the GitHub user id list. Ids []string `json:"ids,omitempty"` // Logins the GitHub user login list. Logins []string `json:"logins,omitempty"` }
ConfigWhitelist the middleware configuration whitelist.
type TraefikGithubOauthMiddleware ¶
type TraefikGithubOauthMiddleware struct {
// contains filtered or unexported fields
}
TraefikGithubOauthMiddleware the middleware.
func (*TraefikGithubOauthMiddleware) ServeHTTP ¶
func (p *TraefikGithubOauthMiddleware) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP implements http.Handler.
Click to show internal directories.
Click to hide internal directories.