1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

first commit

This commit is contained in:
Daniel Neto 2025-03-24 11:10:46 -03:00
parent 4df121dd11
commit 472481adf9
2261 changed files with 100201 additions and 5891 deletions

View file

@ -52,7 +52,10 @@ class AssumeRoleCredentialProvider
$client = $this->client;
return $client->assumeRoleAsync($this->assumeRoleParams)
->then(function (Result $result) {
return $this->client->createCredentials($result);
return $this->client->createCredentials(
$result,
CredentialSources::STS_ASSUME_ROLE
);
})->otherwise(function (\RuntimeException $exception) {
throw new CredentialsException(
"Error in retrieving assume role credentials.",