Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/higebu/iap-token

A CLI tool to generate Google Cloud Identity-Aware Proxy token
https://github.com/higebu/iap-token

Last synced: about 1 month ago
JSON representation

A CLI tool to generate Google Cloud Identity-Aware Proxy token

Awesome Lists containing this project

README

        

# iap-token

Generate Google Cloud Identity-Aware Proxy token with [Impersonate Service Account](https://cloud.google.com/iam/docs/impersonating-service-accounts)

# Install

```shell
go install github.com/higebu/iap-token@latest
```

# Usage

```shell
export CLOUDSDK_AUTH_IMPERSONATE_SERVICE_ACCOUNT=user-sa-name@project-id.iam.gserviceaccount.com
export IAP_CLIENT_ID=xxxxx.apps.googleusercontent.com
curl -H "Authorization: Bearer $(iap-token)" https://example.com
# curl -H "Proxy-Authorization: Bearer $(iap-token)" https://example.com
```