Skip to content

Commit

Permalink
🔥 remove not necessary scope
Browse files Browse the repository at this point in the history
  • Loading branch information
strifel committed Jun 30, 2021
1 parent a80f534 commit a7e2ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func StartOAuth(c *gin.Context) {
clientId := os.Getenv("G_OAUTH_CLIENT")
redirectUrl := os.Getenv("G_OAUTH_REDIRECT_URL")
hd := os.Getenv("G_OAUTH_DOMAIN")
c.Redirect(http.StatusFound, "https://accounts.google.com/o/oauth2/v2/auth?hd="+hd+"&response_type=code&scope=email+profile+openid+https://www.googleapis.com/auth/admin.directory.user.readonly&redirect_uri="+redirectUrl+"&client_id="+clientId)
c.Redirect(http.StatusFound, "https://accounts.google.com/o/oauth2/v2/auth?hd="+hd+"&response_type=code&scope=email+profile+openid&redirect_uri="+redirectUrl+"&client_id="+clientId)
}

type SuccessFunc func(c *gin.Context, user models.GoogleUser)
Expand Down

0 comments on commit a7e2ac9

Please sign in to comment.