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.
27
27
auth-cloud-explicit Authenticate to a cloud client library using a service account explicitly.
28
28
auth-api-implicit Authenticate to a cloud API using a service account implicitly.
29
29
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.
30
32
```
31
33
6 . The following commands are available but will throw a ServiceException when
32
34
run from command-line. The Compute Engine method only works on Compute Engine,
Original file line number Diff line number Diff line change 23
23
# [START auth_http_explicit]
24
24
namespace Google \Cloud \Samples \Auth ;
25
25
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.
29
27
use Google \Auth \Credentials \ServiceAccountCredentials ;
30
28
use Google \Auth \Middleware \AuthTokenMiddleware ;
31
29
use GuzzleHttp \Client ;
Original file line number Diff line number Diff line change 23
23
# [START auth_http_implicit]
24
24
namespace Google \Cloud \Samples \Auth ;
25
25
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.
29
27
use Google \Auth \ApplicationDefaultCredentials ;
30
- use Google \Auth \Middleware \AuthTokenMiddleware ;
31
28
use GuzzleHttp \Client ;
32
29
use GuzzleHttp \HandlerStack ;
33
30
You can’t perform that action at this time.
0 commit comments