1.0.2 • Published 1 year ago

print-iap-oidc-token v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.0-1

1 year ago

1.0.0-0

1 year ago