Deprecated: use https://pkg.go.dev/google.golang.org/api/idtoken?tab=doc
Go package that provides an oauth2 token source to use for authentication to services secured with Google Identity Aware Proxy.
Under development. This has been tested with only a few IAP configurations.
Note: this package only works with Google Service Accounts
This package can be used to authenticate HTTP and gRPC clients with Google's Identity Aware Proxy (better known as "IAP").
By default, the package uses Application Default Credentials - it will use the service account key at the path specified in the environment
variable GOOGLE_APPLICATION_CREDENTIALS
.
See the gRPC and HTTP examples for more information.
- Huge thanks to https://github.com/b4b4r07/iap_curl which provided great examples.
- https://cloud.google.com/iap/docs/authentication-howto#authenticating_from_a_service_account
See LICENSE