|
@@ -116,6 +116,7 @@ abstract class BaseIO implements IOInterface, LoggerInterface
|
|
|
$gitlabOauth = $config->get('gitlab-oauth') ?: array();
|
|
|
$gitlabToken = $config->get('gitlab-token') ?: array();
|
|
|
$httpBasic = $config->get('http-basic') ?: array();
|
|
|
+ $bearerToken = $config->get('bearer') ?: array();
|
|
|
|
|
|
// reload oauth tokens from config if available
|
|
|
|
|
@@ -143,6 +144,10 @@ abstract class BaseIO implements IOInterface, LoggerInterface
|
|
|
$this->checkAndSetAuthentication($domain, $cred['username'], $cred['password']);
|
|
|
}
|
|
|
|
|
|
+ foreach ($bearerToken as $domain => $token) {
|
|
|
+ $this->checkAndSetAuthentication($domain, $token, 'bearer');
|
|
|
+ }
|
|
|
+
|
|
|
// setup process timeout
|
|
|
ProcessExecutor::setTimeout((int) $config->get('process-timeout'));
|
|
|
}
|