From 14ef36ac966078791acf653e7305d7c5a0850165 Mon Sep 17 00:00:00 2001 From: Umputun Date: Fri, 25 May 2018 19:54:54 -0500 Subject: [PATCH] switch google oauth to userinfo.profile --- app/rest/auth/providers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rest/auth/providers.go b/app/rest/auth/providers.go index 50f54400..52a4f8dd 100644 --- a/app/rest/auth/providers.go +++ b/app/rest/auth/providers.go @@ -18,7 +18,7 @@ func NewGoogle(p Params) Provider { Name: "google", Endpoint: google.Endpoint, RedirectURL: p.RemarkURL + "/auth/google/callback", - Scopes: []string{"https://www.googleapis.com/auth/userinfo.email"}, + Scopes: []string{"https://www.googleapis.com/auth/userinfo.profile"}, InfoURL: "https://www.googleapis.com/oauth2/v3/userinfo", MapUser: func(data userData, _ []byte) store.User { userInfo := store.User{