oauth

package
v0.0.0-...-c9c49cf Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGoogleAuth

func HandleGoogleAuth(state string) (redirectUrl string)

func HandleGoogleAuthCallback

func HandleGoogleAuthCallback(code string) (err error, userId uint)

Types

type GoogleUserInfoResponse

type GoogleUserInfoResponse struct {
	Id      string `json:"id"`
	Email   string `json:"email"`
	Name    string `json:"name"`
	Picture string `json:"picture"`
}

type OAuthResult

type OAuthResult struct {
	Type      uint
	Id        string
	Email     string
	Name      string
	AvatarURL string
}

func (*OAuthResult) Process

func (oauthResult *OAuthResult) Process() (err error, userId uint)

Jump to

Keyboard shortcuts

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