oauth

package
Version: 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)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL