Commit Graph

26 Commits

Author SHA1 Message Date
Theodore Salvo f2fbb0e07e
Deprecate use of `ioutil` package (#5906)
Resolves https://github.com/grpc/grpc-go/issues/5897
2023-01-03 11:20:20 -08:00
Theodore Salvo c90744f16a
oauth: mark `NewOauthAccess` as deprecated and update examples to use `TokenSource` (#5882)
* Mark NewOauthAccess as deprecated & change examples

* Fix composite literal uses unkeyed fields for v1.19
2022-12-27 21:06:47 -06:00
yihuaz 0ca7dca977
oauth: Allow access to Google API regional endpoints via Google Default Credentials (#4713) 2021-09-07 09:12:01 -07:00
yihuaz aeb04798c5
credentials: fix PerRPCCredentials w/RequireTransportSecurity and security levels (#3995) 2020-11-09 15:33:53 -08:00
Menghan Li b6d6ede3e0
xds: use google default creds (#3673)
- use google default creds, so the client works not only on GCE (e.g. it also reads env variable for creds).
- Change google default creds to use jwt directly if scope is not set.

- Leak check is disabled temporarily due to https://github.com/googleapis/google-cloud-go/issues/2417
2020-06-11 09:48:55 -07:00
yihuaz 4346c5926d credentials: create API for transport security level information (#3214) 2020-01-07 15:38:45 -08:00
Doug Fawley 04ea82009c
cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
Sean Harger 956d689a24 Use Type() method for OAuth tokens instead of accessing TokenType field. (#1537)
This covers the case where the TokenType field is empty, and thus
calling the Type() method will return "Bearer".
2017-09-25 11:38:05 -07:00
Jan Tattermusch ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
dfawley 3419b42955 Reuse Token for serviceAccount credentials (#1238) 2017-05-16 12:37:36 -07:00
Mike Wiacek 0dd919209f Fix a spelling mistake. 2016-10-31 19:53:00 -07:00
Chris Broadfoot d32f94c75e credentials/oauth: default to Bearer token type 2016-06-24 10:39:34 -07:00
Menghan Li 3ffbd8e030 Rename Credentials to PerRPCCredentials 2016-06-06 17:28:10 -07:00
iamqizhao cf890d694e rename audience 2015-08-28 17:32:25 -07:00
iamqizhao ca129f5e97 gofmt -w 2015-08-28 17:08:48 -07:00
iamqizhao 6be470f058 Credentials API and jwtAccess implementation tunning 2015-08-28 16:51:45 -07:00
iamqizhao 3af5617830 fix build 2015-08-28 14:07:28 -07:00
iamqizhao 87c361b5a5 check transport security when using oauth2-based credentials 2015-08-28 13:19:36 -07:00
yangzhouhan 3df1dd419a fix 2015-08-14 16:35:32 -07:00
yangzhouhan 1126ae61bf add a comment 2015-08-14 16:34:09 -07:00
yangzhouhan c783da2ff9 add a comment 2015-08-14 16:32:38 -07:00
yangzhouhan 25c36604b9 add oauth2 and perrpc interop tests 2015-08-14 16:22:19 -07:00
yangzhouhan 32444cd24d minor changes 2015-08-14 11:35:15 -07:00
yangzhouhan 41ee26a353 add JWTAccessTokenFromKey 2015-08-14 11:20:13 -07:00
yangzhouhan 5ef857242f add jwt_token_creds interop test 2015-08-12 18:26:30 -07:00
Tamir Duberstein c1454617ee Add credentials/oauth 2015-07-22 20:54:35 -04:00