Browse Source

Add scope to Gitlab oauth request (#4330)

Fix #3449
tags/v1.5.0-dev
techknowlogick Lauris BH 7 years ago
parent
commit
d8b3c766df
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/auth/oauth2/oauth2.go

+ 1
- 1
modules/auth/oauth2/oauth2.go View File

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


Loading…
Cancel
Save