oauth

package
v0.0.0-...-ebefd53 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(res http.ResponseWriter, req *http.Request)

Login is the handler function that will handle the login with google button href.

func Success

func Success(res http.ResponseWriter, req *http.Request)

Success verifies the User info after Google returns from authentication.

Types

type User

type User struct {
	Email         string `json:"email"`
	VerifiedEmail bool   `json:"verified_email"`
	Name          string `json:"name"`
	// contains filtered or unexported fields
}

User represents what gets returned by the Google api cobbled with what the program adds.

var CurrentUser User

Jump to

Keyboard shortcuts

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