oauth2/google
Sai Sunder 6242fa9171 google/internal: Add AWS Session Token to Metadata Requests
AWS released a new instance metadata service (IMDSv2). IMDSv2 brought a requirement that a session token header is now required on every call to metadata endpoint.
Modify the AWS credential retrieval flow to fetch the session token and send it along with the calls to metadata endpoints

Change-Id: I539912ab38f5e591658b29a1e7a99d2b828a1128
GitHub-Last-Rev: 29e1f4aad1
GitHub-Pull-Request: golang/oauth2#554
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/390794
Reviewed-by: Cody Oss <codyoss@google.com>
Trust: Cody Oss <codyoss@google.com>
Run-TryBot: Cody Oss <codyoss@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Leo Siracusa <leosiracusa@google.com>
Trust: Tyler Bui-Palsulich <tbp@google.com>
2022-03-09 15:54:54 +00:00
..
downscope google/downscope: return body in error message 2021-08-19 19:09:43 +00:00
internal/externalaccount google/internal: Add AWS Session Token to Metadata Requests 2022-03-09 15:54:54 +00:00
testdata/gcloud google: Use new endpoints for Google authentication 2019-02-26 19:11:47 +00:00
appengine.go all: use stdlib context instead of x/net/context 2018-11-01 16:01:52 +00:00
appengine_gen1.go all: go fmt ./... 2021-02-20 00:06:19 +00:00
appengine_gen2_flex.go all: go fmt ./... 2021-02-20 00:06:19 +00:00
default.go google: Add support for CredentialsParams, Client ID json, and JWT Subject 2021-04-27 18:04:40 +00:00
doc.go google: add external account documentation 2021-06-22 21:54:36 +00:00
example_test.go google: Support scopes for ComputeTokenSource 2019-04-02 18:19:05 +00:00
google.go google: add support for "impersonated_service_account" credential type. 2021-10-28 17:52:45 +00:00
google_test.go google: Use new endpoints for Google authentication 2019-02-26 19:11:47 +00:00
jwt.go google: support scopes for JWT access token 2021-06-15 19:07:21 +00:00
jwt_test.go google: support scopes for JWT access token 2021-06-15 19:07:21 +00:00
sdk.go all: use stdlib context instead of x/net/context 2018-11-01 16:01:52 +00:00
sdk_test.go internal: move ParseINI into google 2018-01-02 15:01:02 +00:00