feat: adds Pluggable Auth support
See go/pluggable-auth-design.
Summary:
Adds a new PluggableAuthClient class that enables the ability for developers to use their own executable to retrieve subject tokens for Workload Identity Federation (instead of a file/URL). ADC is extended to support this new client. Adds documentation in Readme Adds integration test
Fixes: #1433
Warning: This pull request is touching the following templated files:
- README.md -
README.mdis managed bysynthtool. However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/main/.readme-partials.yaml
What makes this PR breaking? It seems it can work without breaking existing users.
What makes this PR breaking? It seems it can work without breaking existing users.
On a previous PR, @bcoe was saying this should be a breaking change: https://github.com/googleapis/google-auth-library-nodejs/pull/1419#pullrequestreview-1003138398
What makes this PR breaking? It seems it can work without breaking existing users.
On a previous PR, @bcoe was saying this should be a breaking change: #1419 (review)
That makes sense - it looks like PluggableAuthClientOptions extends BaseExternalAccountClientOptions so I think we're good there now.