google

package
v0.0.0-...-9082c2d Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2016 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleAuthProvider

func NewGoogleAuthProvider(ec *ab.EntityController, creds auth.OAuthCredentials, delegate GoogleUserDelegate) *auth.OAuth2Provider

Types

type ErrorNoEmail

type ErrorNoEmail struct {
	Emails []*plus.PersonEmails
}

func (ErrorNoEmail) Error

func (e ErrorNoEmail) Error() string

type GoogleAuthProviderDelegate

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

func NewGoogleAuthProviderDelegate

func NewGoogleAuthProviderDelegate(creds auth.OAuthCredentials, delegate GoogleUserDelegate) *GoogleAuthProviderDelegate

func (*GoogleAuthProviderDelegate) GetConfig

func (g *GoogleAuthProviderDelegate) GetConfig() *oauth2.Config

func (*GoogleAuthProviderDelegate) GetLabel

func (g *GoogleAuthProviderDelegate) GetLabel() string

func (*GoogleAuthProviderDelegate) GetName

func (g *GoogleAuthProviderDelegate) GetName() string

func (*GoogleAuthProviderDelegate) PrepareUser

func (g *GoogleAuthProviderDelegate) PrepareUser(c *http.Client, token *oauth2.Token) (ab.Entity, string, error)

func (*GoogleAuthProviderDelegate) ResolveUniqueID

func (g *GoogleAuthProviderDelegate) ResolveUniqueID(db ab.DB, user ab.Entity) (string, error)

type GoogleUserDelegate

type GoogleUserDelegate interface {
	Convert(*plus.Person) (ab.Entity, error)
	ResolveUniqueID(ab.DB, ab.Entity) (string, error)
}

Jump to

Keyboard shortcuts

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