auth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleService

type GoogleService interface {
	GenerateState() (string, error)
	GetDefaultAuthCodeURL() (string, string)
	Exchange(code string) (*oauth2.Token, error)
	GetUser(token *oauth2.Token) (*GoogleUserinfoResponse, error)
}

GoogleService todo

func NewGoogleService

func NewGoogleService(context context.Context) GoogleService

NewGoogleService todo

type GoogleUserinfoResponse

type GoogleUserinfoResponse struct {
	Email         string
	EmailVerified bool
	FamilyName    string
	Gender        string
	GivenName     string
	Hd            string
	Locale        string
	Name          string
	Picture       string
	Profile       string
	Sub           string
}

GoogleUserinfoResponse todo

Jump to

Keyboard shortcuts

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