Skip to content

Commit 4ee52b7

Browse files
techknowlogicklafriks
authored andcommitted
Add scope to Gitlab oauth request (#4330)
Fix #3449
1 parent e87c540 commit 4ee52b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auth/oauth2/oauth2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func createProvider(providerName, providerType, clientID, clientSecret, openIDCo
163163
profileURL = customURLMapping.ProfileURL
164164
}
165165
}
166-
provider = gitlab.NewCustomisedURL(clientID, clientSecret, callbackURL, authURL, tokenURL, profileURL)
166+
provider = gitlab.NewCustomisedURL(clientID, clientSecret, callbackURL, authURL, tokenURL, profileURL, "read_user")
167167
case "gplus":
168168
provider = gplus.New(clientID, clientSecret, callbackURL, "email")
169169
case "openidConnect":

0 commit comments

Comments
 (0)