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