Skip to content

Commit 98d3a21

Browse files
waprinlesv
authored andcommitted
Replace all auth commands with ADC (GoogleCloudPlatform#555)
1 parent a3d01cd commit 98d3a21

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

datastore/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This directory contains sample code used in Google Cloud Datastore documentation
66

77
1. Ensure that you have:
88
* Created a Google Developers Console project with the Datastore API enabled. Follow [these instructions](https://cloud.google.com/docs/authentication#preparation) to get your project set up.
9-
* Installed the Google Cloud SDK and run the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
9+
* Installed the Google Cloud SDK and run the following commands in command line: `gcloud auth application-default login` and `gcloud config set project [YOUR PROJECT ID]`.
1010
* Installed [Maven](https://maven.apache.org/) and Java 7 (or above).
1111

1212
2. Compile the program by typing `mvn clean compile` in command line.

datastore/src/main/java/com/google/datastore/snippets/TaskList.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private void assertArgsLength(String[] args, int expectedLength) {
202202
* Exercises the methods defined in this class.
203203
*
204204
* <p>Assumes that you are authenticated using the Google Cloud SDK (using
205-
* {@code gcloud auth login}).
205+
* {@code gcloud auth application-default login}).
206206
*/
207207
public static void main(String[] args) throws Exception {
208208
TaskList taskList = new TaskList();

flexible/async-rest/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ First, complete the following steps:
1414
- Obtain an app key for the Google Places WebService API.
1515
- Download and install [the Beta build of the Google Cloud SDK](https://developers.google.com/cloud/sdk/#Quick_Start).
1616
- Install the Cloud SDK `app-engine-java` component.
17-
- Authenticate wth the gcloud SDK: gcloud auth login.
17+
- Authenticate wth the gcloud SDK: gcloud auth application-default login.
1818
- Install [Maven](http://maven.apache.org/download.cgi) if you haven't already.
1919

2020

flexible/sparkjava/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Setup
2424

2525
2. Set up the local development environment by [installing the Google Cloud
2626
SDK](https://cloud.google.com/sdk/) and running the following commands in
27-
command line: `gcloud auth login` and `gcloud config set project [YOUR
27+
command line: `gcloud auth application-default login` and `gcloud config set project [YOUR
2828
PROJECT ID]`.
2929

3030
3. Ensure that you have Maven installed and configured to use Java 8. See

storage/json-api/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Google Cloud Storage Service features a REST-based API that allows developers to
3636
Note that if it's been a while, you may need to login with gcloud.
3737

3838
```
39-
gcloud auth login
39+
gcloud auth application-default login
4040
```
4141

4242
## Products

0 commit comments

Comments
 (0)