File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ methods will work on any Google Cloud API.
2727 auth-cloud-explicit Authenticate to a cloud client library using a service account explicitly.
2828 auth-api-implicit Authenticate to a cloud API using a service account implicitly.
2929 auth-api-explicit Authenticate to a cloud API using a service account explicitly.
30+ auth-http-implicit Authenticate to a cloud API with HTTP using a service account implicitly.
31+ auth-http-explicit Authenticate to a cloud API with HTTP using a service account explicitly.
3032```
31336 . The following commands are available but will throw a ServiceException when
3234run from command-line. The Compute Engine method only works on Compute Engine,
Original file line number Diff line number Diff line change 2323# [START auth_http_explicit]
2424namespace Google \Cloud \Samples \Auth ;
2525
26- // Imports the Google Cloud Storage client library, Auth libraries, and Guzzle
27- // HTTP libraries.
28- use Google \Cloud \Storage \StorageClient ;
26+ # Imports Auth libraries and Guzzle HTTP libraries.
2927use Google \Auth \Credentials \ServiceAccountCredentials ;
3028use Google \Auth \Middleware \AuthTokenMiddleware ;
3129use GuzzleHttp \Client ;
Original file line number Diff line number Diff line change 2323# [START auth_http_implicit]
2424namespace Google \Cloud \Samples \Auth ;
2525
26- // Imports the Google Cloud Storage client library, Auth libraries, and Guzzle
27- // HTTP libraries.
28- use Google \Cloud \Storage \StorageClient ;
26+ # Imports Auth libraries and Guzzle HTTP libraries.
2927use Google \Auth \ApplicationDefaultCredentials ;
30- use Google \Auth \Middleware \AuthTokenMiddleware ;
3128use GuzzleHttp \Client ;
3229use GuzzleHttp \HandlerStack ;
3330
You can’t perform that action at this time.
0 commit comments