oauth_handlers

package
v0.0.0-...-06572e6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Oauth2Config *oauth2.Config

Functions

func GoogleOAuth2

func GoogleOAuth2(conf *oauth2.Config) gin.HandlerFunc

func GoogleOAuth2Callback

func GoogleOAuth2Callback(conf *oauth2.Config) gin.HandlerFunc

func SetOauth2Config

func SetOauth2Config()

Env variables needs to be loaded first. But i want the config specifications in this file

Types

type GRes

type GRes struct {
	Id            string `json:"id"`
	Email         string `json:"email"`
	FamilyName    string `json:"family_name"`
	GivenName     string `json:"given_name"`
	Name          string `json:"name"`
	PictureURL    string `json:"picture"`
	VerifiedEmail bool   `json:"verified_email"`
}

Jump to

Keyboard shortcuts

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