-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc(common): make authentication docs easier to find #10110
doc(common): make authentication docs easier to find #10110
Conversation
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
I created a page for all the authentication components. I also moved some general overview stuff out of the `Credentials` class into the components overview.
f86e23d
to
abe605a
Compare
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
This is a rendered version, because the source may be hard to grok: |
Codecov ReportBase: 93.97% // Head: 93.97% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #10110 +/- ##
=======================================
Coverage 93.97% 93.97%
=======================================
Files 1513 1513
Lines 139964 139964
=======================================
+ Hits 131534 131536 +2
+ Misses 8430 8428 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @coryan)
/*! | ||
@defgroup guac Authentication Components | ||
|
||
Most services in Google Cloud Platform requires the client to authenticate the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/requires/require/
Most services in Google Cloud Platform requires the client to authenticate the | ||
requests. Notable exceptions include public buckets in GCS and public data | ||
sets in BigQuery. The C++ client libraries are automatically configured | ||
to use "Google Default Credentials", some applications may need to override this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/some/but some/
requests. Notable exceptions include public buckets in GCS and public data | ||
sets in BigQuery. The C++ client libraries are automatically configured | ||
to use "Google Default Credentials", some applications may need to override this | ||
default. The functions and classes related to change the authentication |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/change/changing/
|
||
## General Concepts | ||
|
||
As mentioned complete overview of authentication and authorization for Google |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/mentioned /mentioned, /
|
||
Access tokens usually expire in about an hour. The client libraries | ||
automatically refresh these tokens when needed. The only exception is | ||
`MakeAccessTokenCredentials()` where the application provides the access token. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/ where/, where/
|
||
## Development Workstations | ||
|
||
During development the most common configuration to use Application Default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/configuration to/configurations that/
During development the most common configuration to use Application Default | ||
Credentials are: | ||
|
||
1. Use the `gcloud auth application-default` to authentication using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/authentication/authenticate/
|
||
1. Use the `gcloud auth application-default` to authentication using the | ||
developer's account for authentication. | ||
1. Set `GOOGLE_APPLICATION_CREDENTIALS` environment variable to load a service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Set/Set the/
developer's account for authentication. | ||
1. Set `GOOGLE_APPLICATION_CREDENTIALS` environment variable to load a service | ||
account key. The value of this environment variable is the full path of a | ||
file which contains the service account key. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/which/that/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I fixed this and your other comments (thanks!) in #10111
I created a page for all the authentication components. I also moved some general overview stuff out of the
Credentials
class into the components overview.This change is