PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/s3/Aws/Sts/StsClient.php +6 -2 1.2.13 → 1.4.2 View file →
@@ -16,8 +16,10 @@
16 16 * @method \Aws\Result assumeRoleWithSAML(array $args = [])
17 17 * @method \GuzzleHttp\Promise\Promise assumeRoleWithSAMLAsync(array $args = [])
18 18 * @method \Aws\Result assumeRoleWithWebIdentity(array $args = [])
19 19 * @method \GuzzleHttp\Promise\Promise assumeRoleWithWebIdentityAsync(array $args = [])
20 + * @method \Aws\Result assumeRoot(array $args = [])
21 + * @method \GuzzleHttp\Promise\Promise assumeRootAsync(array $args = [])
20 22 * @method \Aws\Result decodeAuthorizationMessage(array $args = [])
21 23 * @method \GuzzleHttp\Promise\Promise decodeAuthorizationMessageAsync(array $args = [])
22 24 * @method \Aws\Result getAccessKeyInfo(array $args = [])
23 25 * @method \GuzzleHttp\Promise\Promise getAccessKeyInfoAsync(array $args = [])
@@ -22,8 +24,10 @@
22 24 * @method \Aws\Result getAccessKeyInfo(array $args = [])
23 25 * @method \GuzzleHttp\Promise\Promise getAccessKeyInfoAsync(array $args = [])
24 26 * @method \Aws\Result getCallerIdentity(array $args = [])
25 27 * @method \GuzzleHttp\Promise\Promise getCallerIdentityAsync(array $args = [])
28 + * @method \Aws\Result getDelegatedAccessToken(array $args = [])
29 + * @method \GuzzleHttp\Promise\Promise getDelegatedAccessTokenAsync(array $args = [])
26 30 * @method \Aws\Result getFederationToken(array $args = [])
27 31 * @method \GuzzleHttp\Promise\Promise getFederationTokenAsync(array $args = [])
28 32 * @method \Aws\Result getSessionToken(array $args = [])
29 33 * @method \GuzzleHttp\Promise\Promise getSessionTokenAsync(array $args = [])
@@ -64,9 +68,9 @@
64 68 *
65 69 * @return Credentials
66 70 * @throws \InvalidArgumentException if the result contains no credentials
67 71 */
68 - public function createCredentials(Result $result)
72 + public function createCredentials(Result $result, $source = null)
69 73 {
70 74 if (!$result->hasKey('Credentials')) {
71 75 throw new \InvalidArgumentException('Result contains no credentials');
72 76 }
@@ -79,9 +83,9 @@
79 83 $accountId = $parsedArn->getAccountId();
80 84 }
81 85 $credentials = $result['Credentials'];
82 86 $expiration = isset($credentials['Expiration']) && $credentials['Expiration'] instanceof \DateTimeInterface ? (int) $credentials['Expiration']->format('U') : null;
83 - return new Credentials($credentials['AccessKeyId'], $credentials['SecretAccessKey'], isset($credentials['SessionToken']) ? $credentials['SessionToken'] : null, $expiration, $accountId);
87 + return new Credentials($credentials['AccessKeyId'], $credentials['SecretAccessKey'], isset($credentials['SessionToken']) ? $credentials['SessionToken'] : null, $expiration, $accountId, $source);
84 88 }
85 89 /**
86 90 * Adds service-specific client built-in value
87 91 *