Add scope to Gitlab oauth request (#4330)

Fix #3449
tokarchuk/v1.17
techknowlogick 6 years ago committed by Lauris BH
parent e87c540a87
commit 4ee52b7161
  1. 2
      modules/auth/oauth2/oauth2.go

@ -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":

Loading…
Cancel
Save