Documentation ¶
Index ¶
- Constants
- Variables
- func NewTeamVerifier(teams []Team, gitHubClient Client) verifier.Verifier
- func NewUserVerifier(users []string, gitHubClient Client) verifier.Verifier
- type Client
- type GitHubAuthConfig
- type GitHubProvider
- type GitHubTeamConfig
- type GitHubTeamProvider
- type OrganizationTeams
- type OrganizationVerifier
- type Team
- type TeamVerifier
- type UserVerifier
Constants ¶
View Source
const DisplayName = "GitHub"
View Source
const ProviderName = "github"
Variables ¶
View Source
var Scopes = []string{"read:org"}
Functions ¶
Types ¶
type Client ¶
type GitHubAuthConfig ¶
type GitHubAuthConfig struct { ClientID string `json:"client_id" long:"client-id" description:"Application client ID for enabling GitHub OAuth."` ClientSecret string `json:"client_secret" long:"client-secret" description:"Application client secret for enabling GitHub OAuth."` Organizations []string `` /* 134-byte string literal not displayed */ Teams []GitHubTeamConfig `` /* 131-byte string literal not displayed */ Users []string `json:"users,omitempty" long:"user" description:"GitHub user to permit access." value-name:"LOGIN"` AuthURL string `json:"auth_url,omitempty" long:"auth-url" description:"Override default endpoint AuthURL for Github Enterprise."` TokenURL string `json:"token_url,omitempty" long:"token-url" description:"Override default endpoint TokenURL for Github Enterprise."` APIURL string `json:"api_url,omitempty" long:"api-url" description:"Override default API endpoint URL for Github Enterprise."` }
func (*GitHubAuthConfig) AuthMethod ¶
func (*GitHubAuthConfig) AuthMethod(oauthBaseURL string, teamName string) atc.AuthMethod
func (*GitHubAuthConfig) IsConfigured ¶
func (auth *GitHubAuthConfig) IsConfigured() bool
func (*GitHubAuthConfig) Validate ¶
func (auth *GitHubAuthConfig) Validate() error
type GitHubProvider ¶
func (GitHubProvider) PreTokenClient ¶
func (GitHubProvider) PreTokenClient() (*http.Client, error)
type GitHubTeamConfig ¶
type GitHubTeamConfig struct { OrganizationName string `json:"organization_name,omitempty"` TeamName string `json:"team_name,omitempty"` }
func (*GitHubTeamConfig) UnmarshalFlag ¶
func (flag *GitHubTeamConfig) UnmarshalFlag(value string) error
type GitHubTeamProvider ¶
type GitHubTeamProvider struct { }
func (GitHubTeamProvider) AddAuthGroup ¶
func (GitHubTeamProvider) AddAuthGroup(group *flags.Group) provider.AuthConfig
func (GitHubTeamProvider) ProviderConstructor ¶
func (GitHubTeamProvider) ProviderConstructor( config provider.AuthConfig, redirectURL string, ) (provider.Provider, bool)
func (GitHubTeamProvider) UnmarshalConfig ¶
func (GitHubTeamProvider) UnmarshalConfig(config *json.RawMessage) (provider.AuthConfig, error)
type OrganizationTeams ¶
type OrganizationVerifier ¶
type OrganizationVerifier struct {
// contains filtered or unexported fields
}
func NewOrganizationVerifier ¶
func NewOrganizationVerifier( organizations []string, gitHubClient Client, ) OrganizationVerifier
type TeamVerifier ¶
type TeamVerifier struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.