Created
September 13, 2019 08:29
-
-
Save BNPrashanth/0ac0a386a37f92be87ddd36d503ef9e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ( | |
oauthConfGl = &oauth2.Config{ | |
ClientID: "", | |
ClientSecret: "", | |
RedirectURL: "http://localhost:9090/callback-gl", | |
Scopes: []string{"https://www.googleapis.com/auth/userinfo.email"}, | |
Endpoint: google.Endpoint, | |
} | |
oauthStateStringGl = "" | |
) | |
/* | |
InitializeOAuthGoogle Function | |
*/ | |
func InitializeOAuthGoogle() { | |
oauthConfGl.ClientID = viper.GetString("google.clientID") | |
oauthConfGl.ClientSecret = viper.GetString("google.clientSecret") | |
oauthStateStringGl = viper.GetString("oauthStateString") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment