Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateGoogleOauthConfig() *oauth2.Config
- func GenerateStateOauthCookie(c *gin.Context) string
- func GetUserDataFromGoogle(code string) ([]byte, error)
- func Index(c *gin.Context)
- func RegisterGoogleOauth(c *gin.Context)
- func RunGoogleOauth(c *gin.Context)
- type ConfigJSON
- type OAuthStruct
Constants ¶
View Source
const OauthGoogleUrlAPI = "https://www.googleapis.com/oauth2/v2/userinfo?access_token="
Variables ¶
View Source
var CONFIG_JSON = GetConfig()
View Source
var GoogleOauthConfig = GenerateGoogleOauthConfig()
Functions ¶
func GetUserDataFromGoogle ¶
func RegisterGoogleOauth ¶
func RunGoogleOauth ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.