{"id":37214058,"url":"https://github.com/bakins/iap-token-source","last_synced_at":"2026-01-15T00:45:09.909Z","repository":{"id":54701056,"uuid":"184263938","full_name":"bakins/iap-token-source","owner":"bakins","description":"Go oauth2 Token Source for client authentication with GCP Identity Aware Proxy","archived":true,"fork":false,"pushed_at":"2020-06-16T14:18:10.000Z","size":2140,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-13T23:57:47.142Z","etag":null,"topics":["go","golang","google-cloud","grpc","iap","oauth2"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bakins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-30T13:08:10.000Z","updated_at":"2023-01-28T14:06:55.000Z","dependencies_parsed_at":"2022-08-14T00:30:39.099Z","dependency_job_id":null,"html_url":"https://github.com/bakins/iap-token-source","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bakins/iap-token-source","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakins%2Fiap-token-source","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakins%2Fiap-token-source/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakins%2Fiap-token-source/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakins%2Fiap-token-source/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bakins","download_url":"https://codeload.github.com/bakins/iap-token-source/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakins%2Fiap-token-source/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","google-cloud","grpc","iap","oauth2"],"created_at":"2026-01-15T00:45:09.284Z","updated_at":"2026-01-15T00:45:09.902Z","avatar_url":"https://github.com/bakins.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Deprecated:  use https://pkg.go.dev/google.golang.org/api/idtoken?tab=doc\n\n[![GoDoc](https://godoc.org/github.com/bakins/iap-token-source?status.svg)](https://godoc.org/github.com/bakins/iap-token-source)\n[![CircleCI](https://circleci.com/gh/bakins/iap-token-source.svg?style=svg)](https://circleci.com/gh/bakins/iap-token-source)\n# iap-token-source\n\nGo package that provides an [oauth2 token source](https://godoc.org/golang.org/x/oauth2#TokenSource) to use\nfor authentication to services secured with [Google Identity Aware Proxy](https://cloud.google.com/iap/docs/authentication-howto#authenticating_from_a_service_account).\n\n## Status\n\nUnder development.  This has been tested with only a few IAP configurations.\n\n## Usage\n\nNote: this package only works with [Google Service Accounts](https://cloud.google.com/iam/docs/understanding-service-accounts)\n\n\nThis package can be used to authenticate HTTP and gRPC clients with [Google's Identity Aware Proxy](https://cloud.google.com/iap/) (better known as \n\"IAP\").\n\nBy default, the package uses [Application Default Credentials](https://cloud.google.com/video-intelligence/docs/common/auth#authenticating_with_application_default_credentials) - it will use the service account key at the path specified in the environment \nvariable `GOOGLE_APPLICATION_CREDENTIALS`.\n\nSee the [gRPC](./examples/grpc/) and [HTTP](./examples/http/) examples for more information.\n\n## References\n\n* Huge thanks to https://github.com/b4b4r07/iap_curl which provided great examples.\n* https://cloud.google.com/iap/docs/authentication-howto#authenticating_from_a_service_account\n\n## LICENSE\n\nSee [LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakins%2Fiap-token-source","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbakins%2Fiap-token-source","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakins%2Fiap-token-source/lists"}