Documentation ¶
Index ¶
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 = &oauth2.Config{ RedirectURL: "http://localhost:1337/oauth2/google/callback", ClientID: CONFIG_JSON["GOOGLE_OAUTH_CLIENT_ID"], ClientSecret: CONFIG_JSON["GOOGLE_OAUTH_CLIENT_SECRET"], Scopes: []string{"https://www.googleapis.com/auth/userinfo.email"}, Endpoint: google.Endpoint, }
Functions ¶
func GetUserDataFromGoogle ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.