print-iap-oidc-token

1.0.2 • Public • Published

README

Obtaining an OIDC token for the service account against the GCP Cloud IAP.

Usage

npx print-iap-oidc-token \
--target_audience IAP_CLIENT_ID.apps.googleusercontent.com \
--json_credentials_path ~/.gcp/your_credentials.json
# id token printed

# or
GOOGLE_APPLICATION_CREDENTIALS=~/.gcp/your_credentials.json npx print-iap-oidc-token \
--target_audience IAP_CLIENT_ID.apps.googleusercontent.com

Advanced

curl https://some.iap.url -H "Proxy-Authorization: Bearer $(npx -y print-iap-oidc-token --target_audience IAP_CLIENT_ID.apps.googleusercontent.com --json_credentials_path ~/.gcp/your_credentials.json)"

License

This project is licensed under the MIT license. See the LICENSE file for more info.

Readme

Keywords

Package Sidebar

Install

npm i print-iap-oidc-token

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.38 kB

Total Files

3

Last publish

Collaborators

  • masahirompp