oauth2/google
Andy Zhao 885f294722 google: Add support for OAuth2 token exchange over mTLS
With Context Aware Access enabled, users must use the endpoint "https://oauth2.mtls.googleapis.com/token" for token exchange. This PR adds support for runtime configuration of the OAuth2 token endpoint (as determined by the caller). If using the mTLS oauth2 endpoint, the caller will also need to specify an mTLS-enabled HTTPClient via the "context" mechanism for use by the OAuth2 transport.

Change-Id: Ic83342ec1d224d3acdabf00d863249330424fc54
GitHub-Last-Rev: 07e4849e96
GitHub-Pull-Request: golang/oauth2#630
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/470396
Run-TryBot: Matthew Hickford <hickford@google.com>
Reviewed-by: Shin Fan <shinfan@google.com>
Run-TryBot: Shin Fan <shinfan@google.com>
Reviewed-by: Matthew Hickford <hickford@google.com>
Reviewed-by: Andy Zhao <andyzhao@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-03-03 18:55:16 +00:00
..
downscope google/downscope: return body in error message 2021-08-19 19:09:43 +00:00
internal/externalaccount google/internal/externalaccount: Removed URL validation for google URLs in ADC files 2023-02-17 18:48:36 +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 OAuth2 token exchange over mTLS 2023-03-03 18:55:16 +00:00
doc.go google/internal/externalaccount: Removed URL validation for google URLs in ADC files 2023-02-17 18:48:36 +00:00
error.go google: Wrap token sources in errWrappingTokenSource 2022-06-08 16:14:50 +00:00
error_test.go google: Wrap token sources in errWrappingTokenSource 2022-06-08 16:14:50 +00:00
example_test.go google: Support scopes for ComputeTokenSource 2019-04-02 18:19:05 +00:00
google.go google: Add support for OAuth2 token exchange over mTLS 2023-03-03 18:55:16 +00:00
google_test.go google/google: set JWT Audience in JWTConfigFromJSON() 2022-05-24 21:58:30 +00:00
jwt.go google: Wrap token sources in errWrappingTokenSource 2022-06-08 16:14:50 +00:00
jwt_test.go all: remove redundant type conversion 2022-09-09 00:33:41 +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