Documentation ¶
Index ¶
- Constants
- type GithubProvider
- func (p *GithubProvider) GetLoginURL(ctx context.Context, redirectURL string, state string) string
- func (p *GithubProvider) PopulateUserData(ctx context.Context, token *oauth2.Token, ...) (*userapi.UserSpec, error)
- func (p *GithubProvider) ProviderID() string
- func (p *GithubProvider) Redeem(ctx context.Context, redirectURL string, code string) error
Constants ¶
View Source
const ProviderID = "github"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubProvider ¶
type GithubProvider struct {
// contains filtered or unexported fields
}
func NewGithubProvider ¶
func NewGithubProvider(clientID, clientSecret string, userMapper components.UserMapper) (*GithubProvider, error)
func (*GithubProvider) GetLoginURL ¶
func (*GithubProvider) PopulateUserData ¶
func (p *GithubProvider) PopulateUserData(ctx context.Context, token *oauth2.Token, authInfo *components.AuthenticationInfo) (*userapi.UserSpec, error)
func (*GithubProvider) ProviderID ¶
func (p *GithubProvider) ProviderID() string
Click to show internal directories.
Click to hide internal directories.