diff --git a/Classes/ResourceServer/GitLab.php b/Classes/ResourceServer/GitLab.php index 2f5bd91..80dd7e3 100644 --- a/Classes/ResourceServer/GitLab.php +++ b/Classes/ResourceServer/GitLab.php @@ -86,7 +86,7 @@ public function getAuthorizationUrl(): array $this->oauthProvider = new GitLabOAuthProvider($oauthProviderConfiguration); return [ - $this->oauthProvider->getAuthorizationUrl([ 'scope' => ['api', 'read_user', 'openid'] ]), + $this->oauthProvider->getAuthorizationUrl([ 'scope' => ['read_api', 'read_user', 'openid'] ]), $this->oauthProvider->getState(), $nonceCookie, ]; diff --git a/README.md b/README.md index 8886f50..fb7f1db 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ or to the equivalent page on your self-hosted GitLab server. When creating the application within GitLab, you might need the following information: - Redirect URI: `/typo3/index.php` -- Scopes: `api`,`read_user`,`openid` +- Scopes: `read_api`,`read_user`,`openid` #### 2.2 Creating your own provider