Andy Zhao
0127caffc1
Merge remote-tracking branch 'upstream/master'
2022-06-06 12:39:56 -07:00
Shapor Naghibzadeh
622c5d57e4
google/google: set JWT Audience in JWTConfigFromJSON()
...
Add support to set JWT Audience in JWTConfigFromJSON() to allow setting
the audience field from the JSON config, rather than only allowing it
the default value of the token_uri.
Previous change 272766 (approved but abandoned).
Change-Id: I14d46f3628df0a04801949bf99520b210e778f99
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/406836
Reviewed-by: Cody Oss <codyoss@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Gopher Robot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@google.com >
2022-05-24 21:58:30 +00:00
Russ Cox
9780585627
all: gofmt
...
Gofmt to update doc comments to the new formatting.
For golang/go#51082 .
Change-Id: Id333e34e0c5cd0bea79dcf5dd51130639597b2ee
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/399616
Run-TryBot: Russ Cox <rsc@golang.org >
TryBot-Result: Gopher Robot <gobot@golang.org >
Auto-Submit: Russ Cox <rsc@golang.org >
Reviewed-by: Ian Lance Taylor <iant@google.com >
2022-04-11 21:57:20 +00:00
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
Daniel Marshall
ee48083810
go.mod: update vulnerable net library
...
Resolves #548
Change-Id: I89f23601c812a8c782ee3155f1212f260ded9fc8
GitHub-Last-Rev: 22800fad67
GitHub-Pull-Request: golang/oauth2#549
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/387594
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 >
Trust: Tyler Bui-Palsulich <tbp@google.com >
2022-02-23 15:52:21 +00:00
Cody Oss
d3ed0bb246
google/internal/externalaccount: fix flaky tests
...
It seems like these handful of test would fail because of issues
related to timings. When running the tests there was sometimes a
second scew from when the subjectToken got and want were calculated.
Switched them all to use a static clock so the time portion will
never differ.
Fixes golang/go#49339
Change-Id: Ia2e4e140526ee1fc37fa9d24765cd8ec3033ea22
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/361354
Trust: Cody Oss <codyoss@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
Reviewed-by: Bryan C. Mills <bcmills@google.com >
2021-11-04 18:04:15 +00:00
Guillaume Blaquiere
ba495a64dc
google: add support for "impersonated_service_account" credential type.
...
New credential type supported: "impersonated_service_account".
Extend the "credentialsFile" struct to take into account the credential source for the impersonation.
Reuse of `ImpersonateTokenSource` struct, from `google/internal/externalaccount/Impersonate.go' file. The struct has a package-scope visibility now.
Fixes : #515
Change-Id: I87e213be6d4b6add2d6d82b91b1b38e43a0d2fe4
GitHub-Last-Rev: 14806e6b37
GitHub-Pull-Request: golang/oauth2#516
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/344369
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Michael Knyszek <mknyszek@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-10-28 17:52:45 +00:00
Ryan Kohler
6b3c2da341
google/externalaccount: add support for workforce pool credentials
...
Workforce pools (external account credentials for non-Google users) are
organization-level resources which means that issued workforce pool tokens
will not have any client project ID on token exchange as currently designed.
"To use a Google API, the client must identify the application to the server.
If the API requires authentication, the client must also identify the principal
running the application."
The application here is the client project. The token will identify the user
principal but not the application. This will result in APIs rejecting requests
authenticated with these tokens.
Note that passing a x-goog-user-project override header on API request is
still not sufficient. The token is still expected to have a client project.
As a result, we have extended the spec to support an additional
workforce_pool_user_project for these credentials (workforce pools) which will
be passed when exchanging an external token for a Google Access token. After the
exchange, the issued access token will use the supplied project as the client
project. The underlying principal must still have serviceusage.services.use
IAM permission to use the project for billing/quota.
This field is not needed for flows with basic client authentication (e.g. client
ID is supplied). The client ID is sufficient to determine the client project and
any additionally supplied workforce_pool_user_project value will be ignored.
Note that this feature is not usable yet publicly.
Change-Id: I8311d7783e4048c260cbb68e90d3565df864d7e0
GitHub-Last-Rev: a6dc5ebc95
GitHub-Pull-Request: golang/oauth2#520
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/353393
Reviewed-by: Cody Oss <codyoss@google.com >
Reviewed-by: Bassam Ojeil <bojeil@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-10-05 18:02:43 +00:00
Cody Oss
2bc19b1117
google/downscope: return body in error message
...
Change-Id: Ic424a95895668c2f37ffdcea2e3012e4c929cbe5
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/343689
Reviewed-by: Tyler Bui-Palsulich <tbp@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Trust: Cody Oss <codyoss@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-08-19 19:09:43 +00:00
Patrick Jones
7df4dd6e12
google/externalaccount: validate tokenURL and ServiceAccountImpersonationURL
...
Change-Id: Iab70cc967fd97ac8e349a14760df0f8b02ddf074
GitHub-Last-Rev: ddf4dbd0b7
GitHub-Pull-Request: golang/oauth2#514
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/340569
Reviewed-by: Patrick Jones <ithuriel@google.com >
Reviewed-by: Cody Oss <codyoss@google.com >
Reviewed-by: Chris Broadfoot <cbro@golang.org >
Trust: Cody Oss <codyoss@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-08-17 22:35:10 +00:00
Patrick Jones
faf39c7919
google/downscope: additional examples
...
Updating examples to match the expected token broker & token consumer paradigm.
Change-Id: I9f6474e6d433e544dc92d8b1595e9538a5266043
GitHub-Last-Rev: 2149795f02
GitHub-Pull-Request: golang/oauth2#513
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/339190
Reviewed-by: Leo Siracusa <leosiracusa@google.com >
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Chris Broadfoot <cbro@golang.org >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-08-10 18:38:15 +00:00
Patrick Jones
6f1e639406
google/downscope: update documentation
...
Change-Id: Ib4dfc7b554c1e7565cc61bc372a98ddd390e7453
GitHub-Last-Rev: 63894e5681
GitHub-Pull-Request: golang/oauth2#512
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/338389
Reviewed-by: Cody Oss <codyoss@google.com >
Reviewed-by: Chris Broadfoot <cbro@golang.org >
Trust: Cody Oss <codyoss@google.com >
Trust: Chris Broadfoot <cbro@golang.org >
Run-TryBot: Cody Oss <codyoss@google.com >
Run-TryBot: Chris Broadfoot <cbro@golang.org >
TryBot-Result: Go Bot <gobot@golang.org >
2021-08-05 13:40:26 +00:00
Patrick Jones
a41e5a7819
downscope: implement support for token downscoping
...
Implements support for token downscoping to allow for the creation of tokens with restricted permissions
Change-Id: I52459bdb0dfdd5e8d86e6043ba0362f4bf4b823c
GitHub-Last-Rev: 941cf10a8e
GitHub-Pull-Request: golang/oauth2#502
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/326529
Reviewed-by: Chris Broadfoot <cbro@golang.org >
Run-TryBot: Chris Broadfoot <cbro@golang.org >
TryBot-Result: Go Bot <gobot@golang.org >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Trust: Cody Oss <codyoss@google.com >
2021-06-28 18:02:05 +00:00
gIthuriel
a8dc77f794
google: add external account documentation
...
Adds some documentation to existing public structures for third-party authentication.
Change-Id: I756f5cd5619fbd752c028e99176991139fd45c60
GitHub-Last-Rev: c846ea6748
GitHub-Pull-Request: golang/oauth2#485
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/301610
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Reviewed-by: Cody Oss <codyoss@google.com >
2021-06-22 21:54:36 +00:00
Eno Compton
bce0382f6c
google: fix syntax error
...
Change-Id: I18dd98234a87dca59a199d90a5d0b9cedd80e5af
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/330189
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-06-22 19:05:53 +00:00
gIthuriel
14747e66f6
google: check additional AWS variable
...
AWS_DEFAULT_REGION should have been checked as a backup to AWS_REGION but wasn't. Also removed a redundant print statement in a test case.
Change-Id: Ia6e13eb20f509110a81e3071228283c43a1e9283
GitHub-Last-Rev: 1a10bcc079
GitHub-Pull-Request: golang/oauth2#486
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/302789
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
2021-06-22 16:52:04 +00:00
Shin Fan
d04028783c
google: support scopes for JWT access token
...
Change-Id: I11acd87a56cd003fdb68a5a687e37df450c400d1
GitHub-Last-Rev: efb2e8a08a
GitHub-Pull-Request: golang/oauth2#504
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/327929
Trust: Shin Fan <shinfan@google.com >
Trust: Cody Oss <codyoss@google.com >
Run-TryBot: Shin Fan <shinfan@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
Reviewed-by: Cody Oss <codyoss@google.com >
2021-06-15 19:07:21 +00:00
akay
f6687ab280
endpoints: add Battlenet endpoints
...
OAuth APIs: https://develop.battle.net/documentation/battle-net/oauth-apis
Change-Id: I7c10f68c6ef0cb9b77cffa104e71a7198a599c89
GitHub-Last-Rev: e9596432c8
GitHub-Pull-Request: golang/oauth2#489
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/310249
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Trust: Brad Fitzpatrick <bradfitz@golang.org >
Trust: Heschi Kreinick <heschi@google.com >
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
TryBot-Result: Go Bot <gobot@golang.org >
2021-05-14 16:43:44 +00:00
Mattias Appelgren
9963728281
endpoints: Add Strava endpoint
...
As per the Strava API auth docs: http://developers.strava.com/docs/authentication/
Change-Id: Ibf6fcca193a1b63bf86830b669849653774a9df9
GitHub-Last-Rev: 296e91e1f2
GitHub-Pull-Request: golang/oauth2#473
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/289829
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Trust: Brad Fitzpatrick <bradfitz@golang.org >
Trust: Heschi Kreinick <heschi@google.com >
2021-05-14 16:43:25 +00:00
Andy Zhao
81ed05c6b5
google: Add support for CredentialsParams, Client ID json, and JWT Subject
...
*Add support for Google Developers Console client_credentials.json as a TokenSource.
*Add support for JWT Subject (for domain-wide delegation when using service account as credentials source.)
*Add support for non-default AuthURL and TokenURL for authorized user credentials source.
To support this change, two new exported functions FindDefaultCredentialsWithParams and CredentialsFromJSONWithParams are introduced.
Change-Id: Ib467822e2c14e02f8ae68586665c439960cfbd5c
GitHub-Last-Rev: eb92ab4a21
GitHub-Pull-Request: golang/oauth2#490
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/311589
Reviewed-by: Shin Fan <shinfan@google.com >
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Shin Fan <shinfan@google.com >
Trust: Cody Oss <codyoss@google.com >
2021-04-27 18:04:40 +00:00
Andy Zhao
eb92ab4a21
google: Address additional comments for CredentialsParams support.
2021-04-23 10:25:37 -07:00
Andy Zhao
3a734b4293
google: Address comments for CredentialsParams support
2021-04-21 09:21:58 -07:00
Andy Zhao
debdcb489f
Merge pull request #2 from golang/master
...
Sync with upstream master
2021-04-19 12:23:03 -07:00
Andy Zhao
9b7db16e5e
google: Add support for TokenSourceParams, Client ID json, and JWT Subject
2021-04-19 12:13:37 -07:00
Andy Zhao
5e61552d6c
authhandler: Remove example_test.go
...
The example test implementation uses stdin, which does not work in all environments:
https://github.com/golang/go/issues/45523
Removing for now to unblock release.
Change-Id: I49bafa9fe1d973b7c1d7ce00f51f110f9aa4a5a6
GitHub-Last-Rev: baf46329c2
GitHub-Pull-Request: golang/oauth2#488
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/309469
Reviewed-by: Bryan C. Mills <bcmills@google.com >
Run-TryBot: Bryan C. Mills <bcmills@google.com >
Trust: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-04-13 13:46:43 +00:00
Andy Zhao
baf46329c2
authhandler: Remove example_test.go
2021-04-12 10:21:24 -07:00
Andy Zhao
89bf8afdae
Merge pull request #1 from golang/master
...
Sync from upstream
2021-04-12 10:18:46 -07:00
Andy Zhao
ca291c568f
authhandler: Remove example_test.go
2021-04-12 10:11:51 -07:00
Joel Ferrier
2e8d934016
google: Use bytes.Buffer for go 1.9 compatability
...
Update test cases to use const test data file references.
Change-Id: Ic08b6de5a84db7b2ae2c649ee676c5a2c13f4227
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/306749
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-04-02 16:14:24 +00:00
Andy Zhao
22b0adad75
authhandler: Add support for 3-legged-OAuth
...
Added authhandler.go, which implements a TokenSource to support "three-legged OAuth 2.0" via a custom AuthorizationHandler.
Added example_test.go with a sample command line implementation for AuthorizationHandler.
This patch adds support for 3-legged-OAuth flow using an OAuth Client ID file downloaded from Google Cloud Console.
Change-Id: Iefe54494d6f3ee326a6b1b2a81a7d5d1a7ba3331
GitHub-Last-Rev: 48fc0367c2
GitHub-Pull-Request: golang/oauth2#419
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/232238
Reviewed-by: Tyler Bui-Palsulich <tbp@google.com >
Reviewed-by: Shin Fan <shinfan@google.com >
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Shin Fan <shinfan@google.com >
Trust: Cody Oss <codyoss@google.com >
2021-03-23 18:09:02 +00:00
Andy Zhao
48fc0367c2
authhandler: Reword comment regarding state in example
2021-03-19 11:53:37 -07:00
Andy Zhao
1ae374609f
authhandler: Reword comment regarding state
2021-03-19 11:49:16 -07:00
Andy Zhao
fcaf0780fa
authhandler: Remove CmdAuthorizationHandler and use it as example instead
2021-03-18 09:14:52 -07:00
Andy Zhao
ab12fee4d1
authhandler: Make authHandler the last parameter
2021-03-17 12:29:45 -07:00
Andy Zhao
8a926e1234
authhandler: Rename to CmdAuthorizationHandler and add example_test.go
2021-03-15 13:45:25 -07:00
Shaba Abhiram
cd4f82c27b
endpoints: add Zoom endpoint
...
See #424
Change-Id: I1fa6230082261f60a8e41387ad2bf481df0a1fce
GitHub-Last-Rev: 6fba3dd9d1
GitHub-Pull-Request: golang/oauth2#453
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/271826
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Trust: Brad Fitzpatrick <bradfitz@golang.org >
Trust: Tobias Klauser <tobias.klauser@gmail.com >
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
TryBot-Result: Go Bot <gobot@golang.org >
2021-03-13 18:22:46 +00:00
Andy Zhao
7c289229ae
authhandler: Update default_authhandler.go to inline handler logic
2021-03-11 21:36:49 -08:00
Andy Zhao
cde11fb840
authhandler: Add authhandler_test.go
2021-03-11 21:22:41 -08:00
Ryan Kohler
5366d9dc19
google: Make sure time is always in UTC
...
If times are stored in different time zones, then we occasionally get heisenbugs about expired tokens
Change-Id: I0c117977688d8d6c7b12b211092e5040a41a1f46
GitHub-Last-Rev: 3ff51b34f5
GitHub-Pull-Request: golang/oauth2#482
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/300929
Reviewed-by: Tyler Bui-Palsulich <tbp@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Trust: Cody Oss <codyoss@google.com >
Run-TryBot: Tyler Bui-Palsulich <tbp@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-03-11 16:31:35 +00:00
Andy Zhao
11059998b3
authhandler: Add support for 3-legged-OAuth
...
Added authhandler.go, which implements a TokenSource
to support "three-legged OAuth 2.0" via a custom
AuthorizationHandler.
Added default_authhandler.go to provide a command line
implementation for AuthorizationHandler.
2021-03-09 14:06:02 -08:00
Russ Cox
9bb904979d
all: go fmt ./...
...
Make all our package sources use Go 1.17 gofmt format
(adding //go:build lines).
Not strictly necessary but will avoid spurious changes
as files are edited.
Part of //go:build change (#41184 ).
See https://golang.org/design/draft-gobuild
Change-Id: I22803ea9e936fbb08984a64155302f47e181de27
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/294420
Trust: Russ Cox <rsc@golang.org >
Trust: Cody Oss <codyoss@google.com >
Run-TryBot: Russ Cox <rsc@golang.org >
TryBot-Result: Go Bot <gobot@golang.org >
Reviewed-by: Cody Oss <codyoss@google.com >
2021-02-20 00:06:19 +00:00
Ryan Kohler
ba52d332ba
google: unexport private structs and funcs
...
These structs and funcs cannot be used by the end consumer. Unexporting them helps cleans up our documentation
Change-Id: I2eadb69e87de912ac39f53e83cd9bdfe76a15e3e
GitHub-Last-Rev: 60b58eef75
GitHub-Pull-Request: golang/oauth2#479
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/293752
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-02-18 20:24:05 +00:00
Bassam Ojeil
f145937023
google: update documentation for workload identity federation
...
Document using workload identity federation from non-Google Cloud platforms to access Google Cloud resources.
This covers federation from AWS, Azure and OIDC providers via Application Default Credentials.
Change-Id: I77ee7f6aac5a75d095304f07f3004ec3fb7b9613
GitHub-Last-Rev: 07c9dd0271
GitHub-Pull-Request: golang/oauth2#478
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/293751
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-02-18 20:13:42 +00:00
Patrick Jones
16ff1888fd
google: manual testing fixes
...
I found some errors while manually testing service account impersonation on Azure. This PR includes the fixes that I made.
Change-Id: Ia2b194be6c9a7c843e615f9789c8f8203bcbc151
GitHub-Last-Rev: 5690716363
GitHub-Pull-Request: golang/oauth2#475
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/291209
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-02-16 19:45:17 +00:00
Ryan Kohler
66670185b0
google: Changes required to get AWS working in manual testing
...
• Subject Token needs to be query escaped
• Null options need to be omitted (like they are in other languages)
Change-Id: I67d1ed3ba96a35283a8928f196bc7e912084d1ab
GitHub-Last-Rev: 1aae076a90
GitHub-Pull-Request: golang/oauth2#474
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/290513
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-02-10 19:26:28 +00:00
Ryan Kohler
010130855d
google: support AWS 3rd party credentials
...
Change-Id: I655b38f7fb8023866bb284c7ce80ab9888682e73
GitHub-Last-Rev: 648f0b3d45
GitHub-Pull-Request: golang/oauth2#471
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/287752
Reviewed-by: Cody Oss <codyoss@google.com >
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Trust: Cody Oss <codyoss@google.com >
2021-02-01 16:38:06 +00:00
Patrick Jones
f9ce19ea30
google: support service account impersonation
...
Adds support for service account impersonation when a URL for service account impersonation is provided.
Change-Id: I9f3bbd6926212cecb13938fc5dac358ba56855b8
GitHub-Last-Rev: 9c218789db
GitHub-Pull-Request: golang/oauth2#468
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/285012
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Reviewed-by: Cody Oss <codyoss@google.com >
2021-01-26 19:43:26 +00:00
Ryan Kohler
af13f521f1
google: Create AWS V4 Signing Utility
...
Change-Id: I59b4a13ed0433de7dfaa064a0f7dc1f3dd724518
GitHub-Last-Rev: 8cdc6a9ad0
GitHub-Pull-Request: golang/oauth2#467
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/284632
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
Trust: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Reviewed-by: Cody Oss <codyoss@google.com >
2021-01-25 20:13:02 +00:00
Patrick Jones
d3ed898aa8
google: support url-sourced 3rd party credentials
...
Implements functionality to allow for URL-sourced 3rd party credentials, expanding the functionality added in #462 .
Change-Id: Ib7615fb618486612960d60bee6b9a1ecf5de1404
GitHub-Last-Rev: 95713928e4
GitHub-Pull-Request: golang/oauth2#466
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/283372
Run-TryBot: Cody Oss <codyoss@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
Reviewed-by: Cody Oss <codyoss@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Trust: Cody Oss <codyoss@google.com >
2021-01-13 20:58:17 +00:00
Cody Oss
8b1d76fa04
google: restore 1.11 compatibility
...
NewRequestWithContext requires 1.13. As this is just a convenience
we should try to retatin the 1.11 compatibility by using NewRequest
then calling WithContext instead.
Change-Id: I6208a92061b208a119fdf04fd561a3e4d22bc547
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/283535
Reviewed-by: Tyler Bui-Palsulich <tbp@google.com >
Trust: Tyler Bui-Palsulich <tbp@google.com >
Trust: Cody Oss <codyoss@google.com >
Run-TryBot: Tyler Bui-Palsulich <tbp@google.com >
TryBot-Result: Go Bot <gobot@golang.org >
2021-01-13 16:05:01 +00:00