loginwithgithub

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: 10 Imported by: 0

Documentation

Index

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

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

func (*GithubProvider) Redeem

func (p *GithubProvider) 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