{"modulePath":"github.com/WorldProgrammingLtd/dex","version":"v2.13.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github provides authentication strategies using GitHub.\n\n## Types\n\n```go\ntype Config struct {\n\tClientID      string `json:\"clientID\"`\n\tClientSecret  string `json:\"clientSecret\"`\n\tRedirectURI   string `json:\"redirectURI\"`\n\tOrg           string `json:\"org\"`\n\tOrgs          []Org  `json:\"orgs\"`\n\tHostName      string `json:\"hostName\"`\n\tRootCA        string `json:\"rootCA\"`\n\tTeamNameField string `json:\"teamNameField\"`\n}\n```\nConfig holds configuration options for github logins.\n\n```go\nfunc (c *Config) Open(id string, logger logrus.FieldLogger) (connector.Connector, error)\n```\nOpen returns a strategy for logging in through GitHub.\n\n```go\ntype Org struct {\n\n\t// Organization name in github (not slug, full name). Only users in this github\n\t// organization can authenticate.\n\tName string `json:\"name\"`\n\n\t// Names of teams in a github organization. A user will be able to\n\t// authenticate if they are members of at least one of these teams. Users\n\t// in the organization can authenticate if this field is omitted from the\n\t// config file.\n\tTeams []string `json:\"teams,omitempty\"`\n}\n```\nOrg holds org-team filters, in which teams are optional.\n\n","path":"github.com/WorldProgrammingLtd/dex/connector/github","name":"github","synopsis":"Package github provides authentication strategies using GitHub.","isRedistributable":true}
