authgoogle

package
v0.0.0-...-5929aaf Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
}

func (*Mock) GetAuthURL

func (p *Mock) GetAuthURL() string

Method for getting URL to external provider for authentication

func (*Mock) ProcessAuthRedirect

func (p *Mock) ProcessAuthRedirect(authCode string) (userProfile *resources.UserProfile, err error)

Method for processing redirect from auth provider after user is authenticated

type Provider

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

func New

func New(config config.Config) (provider *Provider, err error)

func (*Provider) GetAuthURL

func (p *Provider) GetAuthURL() string

Method for getting URL to external provider for authentication

func (*Provider) ProcessAuthRedirect

func (p *Provider) ProcessAuthRedirect(authCode string) (userProfile *resources.UserProfile, err error)

Method for processing redirect from auth provider after user is authenticated

type UserProfile

type UserProfile struct {
	FirstName string `json:"given_name"`
	LastName  string `json:"family_name"`
	Email     string `json:"email"`
	Locale    string `json:"locale"`
}

Jump to

Keyboard shortcuts

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