google

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: 11 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
}

GoogleProvider implements the OAuthProvider interface for Google OAuth2.

func New

func New(config core.OAuthConfig) *GoogleProvider

New creates a new GoogleProvider with the given OAuth configuration.

func (*GoogleProvider) AuthURL

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

func (*GoogleProvider) Authenticate

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

func (*GoogleProvider) HandleCallback

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

func (*GoogleProvider) Name

func (p *GoogleProvider) Name() string

func (*GoogleProvider) ProviderName

func (p *GoogleProvider) ProviderName() string

Jump to

Keyboard shortcuts

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