google-auth-library-php
google-auth-library-php copied to clipboard
Add support for "executable" credential source
See the NodeJs implementation for reference.
Support the "executable" credential source for external account credentials. For example:
{
"type": "external_account",
"audience": "//iam.googleapis.com/locations/global/workforcePools/$WF_POOL_ID/providers/$PROVIDER_ID",
"subject_token_type": "urn:ietf:params:oauth:token-type:jwt",
"token_url": "https://sts.googleapis.com/v1/token",
"token_info_url": "https://sts.googleapis.com/v1alpha/token_info",
"credential_source": {
"executable": {
"command": "/path/to/get/credentials.sh --arg1=value1 --arg2=value2",
"timeout_millis": 1500,
"interactive_timeout_millis": 30000,
"output_file": "/path/to/generated/cached/credentials/"
}
}
}