improvement: update gitlab api scope (#630)

This commit is contained in:
Ogundele Olumide 2020-04-23 21:26:25 +01:00 committed by GitHub
parent 627a591824
commit 5f0c13767b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -25,9 +25,9 @@ Field | Description
------------ | -------------------------------------------- ------------ | --------------------------------------------
Name | The name of your web app Name | The name of your web app
Redirect URI | `https://${authenticate_service_url}/oauth2/callback` Redirect URI | `https://${authenticate_service_url}/oauth2/callback`
Scopes | **Must** select **openid**, **read_user** and **api** Scopes | **Must** select **openid**, **read_user** and **read_api**
If no scopes are set, we will use the following scopes: `openid`, `api`, `read_user`, `profile`, `email`. If no scopes are set, we will use the following scopes: `openid`, `read_api`, `read_user`, `profile`, `email`.
Your `Client ID` and `Client Secret` will be displayed like below: Your `Client ID` and `Client Secret` will be displayed like below:

View file

@ -22,7 +22,7 @@ import (
// Name identifies the GitLab identity provider // Name identifies the GitLab identity provider
const Name = "gitlab" const Name = "gitlab"
var defaultScopes = []string{oidc.ScopeOpenID, "api", "read_user", "profile", "email"} var defaultScopes = []string{oidc.ScopeOpenID, "read_api", "read_user", "profile", "email"}
const ( const (
defaultProviderURL = "https://gitlab.com" defaultProviderURL = "https://gitlab.com"