Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseProvider ¶
type BaseProvider struct {
// contains filtered or unexported fields
}
func (*BaseProvider) GetAuthURL ¶
func (p *BaseProvider) GetAuthURL(state string) string
func (*BaseProvider) GetName ¶
func (p *BaseProvider) GetName() string
type Bitbucket ¶
type Bitbucket struct {
BaseProvider
// contains filtered or unexported fields
}
type GitHub ¶
type GitHub struct {
BaseProvider
// contains filtered or unexported fields
}
type OIDCProvider ¶
type OIDCProvider struct {
BaseProvider
// contains filtered or unexported fields
}
func NewOIDCProvider ¶
func NewOIDCProvider(ctx context.Context, name string, providerConfig config.OAuthClientProviderConfig, authServiceBaseURL url.URL) (*OIDCProvider, error)
func (*OIDCProvider) FetchUserInfo ¶
type Provider ¶
type Provider interface {
GetAuthURL(state string) string
GetName() string
GetToken(ctx context.Context, code string) (*oauth2.Token, error)
FetchUserInfo(ctx context.Context, accessToken *oauth2.Token) (*UserInfo, error)
}
Provider defines the interface for OAuth client provider implementations. It provides methods to generate authorization URLs and retrieve provider metadata.
func NewBitbucketProvider ¶
func NewGitHubProvider ¶
Click to show internal directories.
Click to hide internal directories.