diff options
author | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-06-30 13:13:17 -0400 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-06-30 20:13:17 +0300 |
commit | 4ee52b716144b9d0eef4564dda4d22840897c09b (patch) | |
tree | f4071915b562f583f19cfcd3611d90e7a18d09f7 /modules | |
parent | e87c540a87602682d49f1b10bfa91cbebe0fc9b6 (diff) | |
download | gitea-4ee52b716144b9d0eef4564dda4d22840897c09b.tar.gz gitea-4ee52b716144b9d0eef4564dda4d22840897c09b.zip |
Add scope to Gitlab oauth request (#4330)
Fix #3449
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/oauth2/oauth2.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/oauth2/oauth2.go b/modules/auth/oauth2/oauth2.go index 89286a1bd6..de125c6195 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": |