AwsNativeSource
class AwsNativeSource implements ExternalAccountCredentialSourceInterface (View source)
Authenticates requests using AWS credentials.
Constants
private CRED_VERIFICATION_QUERY |
|
Methods
__construct(string $audience, string $regionalCredVerificationUrl, string $regionUrl = null, string $securityCredentialsUrl = null, string $imdsv2SessionTokenUrl = null)
No description
string
fetchSubjectToken(callable $httpHandler = null)
No description
static string
getImdsV2SessionToken(string $imdsV2Url, callable $httpHandler)
No description
static array
getSignedRequestHeaders(string $region, string $host, string $accessKeyId, string $secretAccessKey, string|null $securityToken)
No description
static string|null
getRegionFromEnv()
No description
static string
getRegionFromUrl(callable $httpHandler, string $regionUrl, array $headers)
No description
static string
getRoleName(callable $httpHandler, string $securityCredentialsUrl, array $headers)
No description
static array
getSigningVarsFromUrl(callable $httpHandler, string $securityCredentialsUrl, string $roleName, array $headers)
No description
static array|null
getSigningVarsFromEnv()
No description
string|null
getCacheKey()
Gets the unique key for caching For AwsNativeSource the values are: Imdsv2SessionTokenUrl.SecurityCredentialsUrl.RegionUrl.RegionalCredVerificationUrl
Details
__construct(string $audience, string $regionalCredVerificationUrl, string $regionUrl = null, string $securityCredentialsUrl = null, string $imdsv2SessionTokenUrl = null)
No description
string
fetchSubjectToken(callable $httpHandler = null)
No description
static string
getImdsV2SessionToken(string $imdsV2Url, callable $httpHandler)
internal |
No description
static array
getSignedRequestHeaders(string $region, string $host, string $accessKeyId, string $secretAccessKey, string|null $securityToken)
internal |
No description
static string|null
getRegionFromEnv()
internal |
No description
static string
getRegionFromUrl(callable $httpHandler, string $regionUrl, array $headers)
internal |
No description
static string
getRoleName(callable $httpHandler, string $securityCredentialsUrl, array $headers)
internal |
No description
static array
getSigningVarsFromUrl(callable $httpHandler, string $securityCredentialsUrl, string $roleName, array $headers)
internal |
No description
static array|null
getSigningVarsFromEnv()
internal |
No description
string|null
getCacheKey()
Gets the unique key for caching For AwsNativeSource the values are: Imdsv2SessionTokenUrl.SecurityCredentialsUrl.RegionUrl.RegionalCredVerificationUrl