Documentation ¶
Index ¶
- func NewGoogleAuthProvider(ec *ab.EntityController, creds auth.OAuthCredentials, ...) *auth.OAuth2Provider
- type ErrorNoEmail
- type GoogleAuthProviderDelegate
- func (g *GoogleAuthProviderDelegate) GetConfig() *oauth2.Config
- func (g *GoogleAuthProviderDelegate) GetLabel() string
- func (g *GoogleAuthProviderDelegate) GetName() string
- func (g *GoogleAuthProviderDelegate) PrepareUser(c *http.Client, token *oauth2.Token) (ab.Entity, string, error)
- func (g *GoogleAuthProviderDelegate) ResolveUniqueID(db ab.DB, user ab.Entity) (string, error)
- type GoogleUserDelegate
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 (*GoogleAuthProviderDelegate) ResolveUniqueID ¶
Click to show internal directories.
Click to hide internal directories.