loginwithgoogle

package
v0.0.0-...-9bbed00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 (p *GoogleProvider) GetLoginURL(ctx context.Context, redirectURL string, state string) string

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

func (*GoogleProvider) Redeem

func (p *GoogleProvider) Redeem(ctx context.Context, redirectURL string, code string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL