backend

package
v0.0.0-...-ca440b2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const IsLoginURL = "/islogin" // "https://ginoauth-example.herokuapp.com/Islogin"

Variables

View Source
var StateError = errors.New("state error.")

Functions

func FacebookCallBack

func FacebookCallBack(ctx *gin.Context)

func FacebookOauthLogin

func FacebookOauthLogin(ctx *gin.Context)

func GenerateState

func GenerateState() string

func GithubCallBack

func GithubCallBack(ctx *gin.Context)

func GithubOauthLogin

func GithubOauthLogin(ctx *gin.Context)

func GoogleCallBack

func GoogleCallBack(ctx *gin.Context)

func GoogleOauthLogin

func GoogleOauthLogin(ctx *gin.Context)

Types

type ClientOption

type ClientOption struct {
	// contains filtered or unexported fields
}

func CreateClientOptions

func CreateClientOptions(company string, redirectURL string) *ClientOption

func CreateClientOptionsWithString

func CreateClientOptionsWithString(ID, Secret, RedirectURL string) *ClientOption

Jump to

Keyboard shortcuts

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