oauth

package
v0.0.0-...-9217bb4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLIENT_SECRET_FACEBOOK_FILENAME = "facebook_client_secret.json"
)
View Source
const (
	CLIENT_SECRET_GITHUB_FILENAME = "github_client_secret.json"
)
View Source
const (
	CLIENT_SECRET_GOOGLE_FILENAME = "google_client_secret.json"
)
View Source
const (
	OAUTH_COOKIE = "oauth2_cookie"
)

Variables

This section is empty.

Functions

func FacebookCallback

func FacebookCallback(w http.ResponseWriter, r *http.Request)

func FacebookLogin

func FacebookLogin(w http.ResponseWriter, r *http.Request)

func GetUserName

func GetUserName(r *http.Request) string

func GitHubCallback

func GitHubCallback(w http.ResponseWriter, r *http.Request)

func GitHubLogin

func GitHubLogin(w http.ResponseWriter, r *http.Request)

func GoogleCallback

func GoogleCallback(w http.ResponseWriter, r *http.Request)

func GoogleLogin

func GoogleLogin(w http.ResponseWriter, r *http.Request)

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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