0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-22 00:11:11 +01:00

Add scope to Gitlab oauth request (#4330)

Fix #3449
This commit is contained in:
techknowlogick 2018-06-30 13:13:17 -04:00 committed by Lauris BH
parent e87c540a87
commit 4ee52b7161

View file

@ -163,7 +163,7 @@ func createProvider(providerName, providerType, clientID, clientSecret, openIDCo
profileURL = customURLMapping.ProfileURL 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": case "gplus":
provider = gplus.New(clientID, clientSecret, callbackURL, "email") provider = gplus.New(clientID, clientSecret, callbackURL, "email")
case "openidConnect": case "openidConnect":