Skip to content
Snippets Groups Projects
Commit 6f7e55fe authored by Stanley Cheung's avatar Stanley Cheung
Browse files

php: fix per_rpc_creds capital auth header key

parent 4275e60e
No related branches found
No related tags found
No related merge requests found
...@@ -197,7 +197,12 @@ function updateAuthMetadataCallback($context) ...@@ -197,7 +197,12 @@ function updateAuthMetadataCallback($context)
$methodName = $context->method_name; $methodName = $context->method_name;
$auth_credentials = ApplicationDefaultCredentials::getCredentials(); $auth_credentials = ApplicationDefaultCredentials::getCredentials();
return $auth_credentials->updateMetadata($metadata = [], $authUri); $metadata = [];
$result = $auth_credentials->updateMetadata([], $authUri);
foreach ($result as $key => $value) {
$metadata[strtolower($key)] = $value;
}
return $metadata;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment