diff --git a/Classes/ResourceServer/GitLab.php b/Classes/ResourceServer/GitLab.php index 062d165..a486dbc 100644 --- a/Classes/ResourceServer/GitLab.php +++ b/Classes/ResourceServer/GitLab.php @@ -146,7 +146,7 @@ public function loadUserDetails(ResourceOwnerInterface $user): void $gitlabClient = $user->getApiClient(); try { - $project = $gitlabClient->projects->show($this->projectName); + $project = $gitlabClient->projects()->show($this->projectName); $accessLevel = 0; if (isset($project['permissions']['project_access'])) { diff --git a/composer.json b/composer.json index 50522e1..a5cb481 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "require": { "php": "^7.4||^8.0", "league/oauth2-client": "^2.6", - "m4tthumphrey/php-gitlab-api": "^9.19", + "m4tthumphrey/php-gitlab-api": "^11.0", "omines/oauth2-gitlab": "^3.4", "php-http/guzzle7-adapter": "^1.0", "psr/http-factory": "^1.0", @@ -50,5 +50,11 @@ "typo3/cms": { "extension-key": "oauth2" } + }, + "config": { + "allow-plugins": { + "typo3/cms-composer-installers": false, + "typo3/class-alias-loader": false + } } } diff --git a/ext_localconf.php b/ext_localconf.php index b18e96e..9d00b7b 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -26,6 +26,10 @@ $extensionConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['oauth2']); } elseif (isset($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['oauth2'])) { $extensionConfig = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['oauth2']; +} else { + $extensionConfig = [ + 'enableBackendLogin' => false, + ]; } if ($extensionConfig['enableBackendLogin']) {