Documentation ¶
Index ¶
- Constants
- func NewScopeVerifier(scope string) verifier.Verifier
- type ConfigOverride
- type GenericOAuthConfig
- type GenericOAuthToken
- type GenericTeamProvider
- type NoopVerifier
- type Provider
- func (provider Provider) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
- func (provider Provider) Client(ctx context.Context, t *oauth2.Token) *http.Client
- func (provider Provider) Exchange(ctx context.Context, code string) (*oauth2.Token, error)
- func (Provider) PreTokenClient() (*http.Client, error)
- type ScopeVerifier
Constants ¶
View Source
const ProviderName = "oauth"
Variables ¶
This section is empty.
Functions ¶
func NewScopeVerifier ¶
Types ¶
type GenericOAuthConfig ¶
type GenericOAuthConfig struct { DisplayName string `json:"display_name" long:"display-name" description:"Name for this auth method on the web UI."` ClientID string `json:"client_id" long:"client-id" description:"Application client ID for enabling generic OAuth."` ClientSecret string `json:"client_secret" long:"client-secret" description:"Application client secret for enabling generic OAuth."` AuthURL string `json:"auth_url,omitempty" long:"auth-url" description:"Generic OAuth provider AuthURL endpoint."` AuthURLParams map[string]string `` /* 160-byte string literal not displayed */ Scope string `json:"scope,omitempty" long:"scope" description:"Optional scope required to authorize user"` TokenURL string `json:"token_url,omitempty" long:"token-url" description:"Generic OAuth provider TokenURL endpoint."` }
func (*GenericOAuthConfig) AuthMethod ¶
func (config *GenericOAuthConfig) AuthMethod(oauthBaseURL string, teamName string) atc.AuthMethod
func (*GenericOAuthConfig) IsConfigured ¶
func (config *GenericOAuthConfig) IsConfigured() bool
func (*GenericOAuthConfig) Validate ¶
func (config *GenericOAuthConfig) Validate() error
type GenericOAuthToken ¶
type GenericOAuthToken struct {
Scopes []string `json:"scope"`
}
type GenericTeamProvider ¶
type GenericTeamProvider struct{}
func (GenericTeamProvider) AddAuthGroup ¶
func (GenericTeamProvider) AddAuthGroup(group *flags.Group) provider.AuthConfig
func (GenericTeamProvider) ProviderConstructor ¶
func (GenericTeamProvider) ProviderConstructor( config provider.AuthConfig, redirectURL string, ) (provider.Provider, bool)
func (GenericTeamProvider) UnmarshalConfig ¶
func (GenericTeamProvider) UnmarshalConfig(config *json.RawMessage) (provider.AuthConfig, error)
type NoopVerifier ¶
type NoopVerifier struct{}
Click to show internal directories.
Click to hide internal directories.