github

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubProvider

type GitHubProvider struct {
	// contains filtered or unexported fields
}

GitHubProvider implements the OAuthProvider interface for GitHub OAuth2.

func New

func New(config core.OAuthConfig) *GitHubProvider

New creates a new GitHubProvider with the given OAuth configuration.

func (*GitHubProvider) AuthURL

func (p *GitHubProvider) AuthURL(state string) string

func (*GitHubProvider) Authenticate

func (p *GitHubProvider) Authenticate(ctx *core.Context) (*core.User, error)

func (*GitHubProvider) HandleCallback

func (p *GitHubProvider) HandleCallback(ctx *core.Context) (*core.User, error)

func (*GitHubProvider) Name

func (p *GitHubProvider) Name() string

func (*GitHubProvider) ProviderName

func (p *GitHubProvider) ProviderName() string

Jump to

Keyboard shortcuts

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