Skip to content

Commit

Permalink
Replace all auth commands with ADC (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
waprin authored and lesv committed Mar 9, 2017
1 parent a3d01cd commit 98d3a21
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datastore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This directory contains sample code used in Google Cloud Datastore documentation

1. Ensure that you have:
* 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.
* Installed the Google Cloud SDK and run the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
* 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]`.
* Installed [Maven](https://maven.apache.org/) and Java 7 (or above).

2. Compile the program by typing `mvn clean compile` in command line.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private void assertArgsLength(String[] args, int expectedLength) {
* Exercises the methods defined in this class.
*
* <p>Assumes that you are authenticated using the Google Cloud SDK (using
* {@code gcloud auth login}).
* {@code gcloud auth application-default login}).
*/
public static void main(String[] args) throws Exception {
TaskList taskList = new TaskList();
Expand Down
2 changes: 1 addition & 1 deletion flexible/async-rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ First, complete the following steps:
- Obtain an app key for the Google Places WebService API.
- Download and install [the Beta build of the Google Cloud SDK](https://developers.google.com/cloud/sdk/#Quick_Start).
- Install the Cloud SDK `app-engine-java` component.
- Authenticate wth the gcloud SDK: gcloud auth login.
- Authenticate wth the gcloud SDK: gcloud auth application-default login.
- Install [Maven](http://maven.apache.org/download.cgi) if you haven't already.


Expand Down
2 changes: 1 addition & 1 deletion flexible/sparkjava/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Setup

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

3. Ensure that you have Maven installed and configured to use Java 8. See
Expand Down
2 changes: 1 addition & 1 deletion storage/json-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Google Cloud Storage Service features a REST-based API that allows developers to
Note that if it's been a while, you may need to login with gcloud.

```
gcloud auth login
gcloud auth application-default login
```

## Products
Expand Down

0 comments on commit 98d3a21

Please sign in to comment.