From 4ee52b716144b9d0eef4564dda4d22840897c09b Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sat, 30 Jun 2018 13:13:17 -0400 Subject: [PATCH] Add scope to Gitlab oauth request (#4330) Fix #3449 --- modules/auth/oauth2/oauth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auth/oauth2/oauth2.go b/modules/auth/oauth2/oauth2.go index 89286a1bd61..de125c6195a 100644 --- a/modules/auth/oauth2/oauth2.go +++ b/modules/auth/oauth2/oauth2.go @@ -163,7 +163,7 @@ func createProvider(providerName, providerType, clientID, clientSecret, openIDCo profileURL = customURLMapping.ProfileURL } } - provider = gitlab.NewCustomisedURL(clientID, clientSecret, callbackURL, authURL, tokenURL, profileURL) + provider = gitlab.NewCustomisedURL(clientID, clientSecret, callbackURL, authURL, tokenURL, profileURL, "read_user") case "gplus": provider = gplus.New(clientID, clientSecret, callbackURL, "email") case "openidConnect":