diff --git a/main.go b/main.go index a8d3f1b6f..f061a23a9 100644 --- a/main.go +++ b/main.go @@ -38,6 +38,7 @@ func main() { flagSet.Var(&skipAuthRegex, "skip-auth-regex", "bypass authentication for requests path's that match (may be given multiple times)") flagSet.Var(&emailDomains, "email-domain", "authenticate emails with the specified domain (may be given multiple times). Use * to authenticate any email") + flagSet.String("github-base-url", "", "github base url to configure github enterprise endpoint") flagSet.String("github-org", "", "restrict logins to members of this organisation") flagSet.String("github-team", "", "restrict logins to members of this team") flagSet.Var(&googleGroups, "google-group", "restrict logins to members of this google group (may be given multiple times).") diff --git a/options.go b/options.go index e624f142d..99038c630 100644 --- a/options.go +++ b/options.go @@ -28,7 +28,7 @@ type Options struct { EmailDomains []string `flag:"email-domain" cfg:"email_domains"` GitHubOrg string `flag:"github-org" cfg:"github_org"` GitHubTeam string `flag:"github-team" cfg:"github_team"` - GitHubBaseUrl string `flag:"github-base-url" cfg:"github_base_url"` + GitHubBaseUrl string `flag:"github-base-url" cfg:"github_base_url"` GoogleGroups []string `flag:"google-group" cfg:"google_group"` GoogleAdminEmail string `flag:"google-admin-email" cfg:"google_admin_email"` GoogleServiceAccountJSON string `flag:"google-service-account-json" cfg:"google_service_account_json"`