google

package
v0.0.0-...-1ec5b87 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func Google

func Google(id, secret, cb string, nf *nonces.Factory) *Provider

Google returns an OAuth2 client that uses Google as a provider. The id and secret parameters are the Client ID and Secret. The cb parameter is the callback URL to send to the provider. The nf parameter is the nonce factory used when requesting and validating tokens.

func (*Provider) Code

func (p *Provider) Code() string

Code implements the authn.Provider interface.

func (*Provider) Debug

func (p *Provider) Debug(flag bool)

Debug implements the Provider interface.

func (*Provider) LoginURL

func (p *Provider) LoginURL() (string, error)

LoginURL implements the authn.Provider interface.

func (*Provider) Name

func (p *Provider) Name() string

Name implements the authn.Provider interface.

func (*Provider) ProcessCallback

func (p *Provider) ProcessCallback(r *http.Request) (authn.Authentication, error)

ProcessCallback implements the authn.Provider interface.

func (*Provider) Version

func (p *Provider) Version() string

Version implements the authz.Provider interface.

Jump to

Keyboard shortcuts

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