googleoauth

package
v0.0.0-...-ac02f16 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 31 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Name = "googleoauth"
)

Variables

This section is empty.

Functions

func Configure

func Configure(ctx context.Context, mgmtCtx *config.ScaledContext, userMGR user.Manager, tokenMGR *tokens.Manager) common.AuthProvider

Types

type Account

type Account struct {
	Email           string `json:"email,omitempty"`
	Name            string `json:"name,omitempty"`
	GivenName       string `json:"given_name,omitempty"`
	FamilyName      string `json:"family_name,omitempty"`
	PictureURL      string `json:"picture,omitempty"`
	SubjectUniqueID string `json:"sub,omitempty"`
	EmailVerified   bool   `json:"email_verified,omitempty"`
	HostedDomain    string `json:"hd,omitempty"`
	Type            string
}

Account defines properties an account on github has

type GClient

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

GClient implements a httpclient for google oauth

Jump to

Keyboard shortcuts

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