Skip to content

Commit 96c2b60

Browse files
committed
Fix wording in main README's Authentication section
1 parent faa4476 commit 96c2b60

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Authentication
117117

118118
`google-cloud-java` uses
119119
[https://github.com/google/google-auth-library-java](https://github.com/google/google-auth-library-java)
120-
to authenticate requests. `google-auth-library-java` supports a wide range of authentication types,
120+
to authenticate requests. `google-auth-library-java` supports a wide range of authentication types;
121121
see the project's [README](https://github.com/google/google-auth-library-java/blob/master/README.md)
122122
and [javadoc](http://google.github.io/google-auth-library-java/releases/0.6.0/apidocs/) for more
123123
details.
@@ -152,10 +152,10 @@ Storage storage = StorageOptions.getDefaultInstance().getService();
152152
```
153153
* If running locally for development/testing, you can use the
154154
[Google Cloud SDK](https://cloud.google.com/sdk/). Create Application Default Credentials with
155-
`gcloud auth application-default login`, `google-cloud` will automatically detect such
155+
`gcloud auth application-default login`, and then `google-cloud` will automatically detect such
156156
credentials.
157157
* If you already have an OAuth2 access token, you can use it to authenticate (notice that in this
158-
case the access token will not be automatically refreshed):
158+
case, the access token will not be automatically refreshed):
159159
```java
160160
Storage storage = StorageOptions.newBuilder()
161161
.setCredentials(new GoogleCredentials(new AccessToken(accessToken, expirationTime)))
@@ -167,7 +167,7 @@ If no credentials are provided, `google-cloud` will attempt to detect them from
167167
using `GoogleCredentials.getApplicationDefault()` which will search for Default Application
168168
Credentials in the following locations (in order):
169169
170-
1. Credentials file pointed to by the `GOOGLE_APPLICATION_CREDENTIALS` environment variable
170+
1. The credentials file pointed to by the `GOOGLE_APPLICATION_CREDENTIALS` environment variable
171171
2. Credentials provided by the Google Cloud SDK `gcloud auth application-default login` command
172172
3. Google App Engine built-in credentials
173173
4. Google Cloud Shell built-in credentials

0 commit comments

Comments
 (0)