-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add repo-metadata.json to generate docs (#730)
- Loading branch information
1 parent
50a15cd
commit 04b73ba
Showing
10 changed files
with
229 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ samples/*.keys.json | |
package-lock.json | ||
yarn.lock | ||
dist/ | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "google-auth-library", | ||
"name_pretty": "Google Auth Library", | ||
"product_documentation": "https://cloud.google.com/docs/authentication/", | ||
"client_documentation": "https://googleapis.dev/nodejs/google-auth-library/latest/", | ||
"release_level": "ga", | ||
"language": "nodejs", | ||
"repo": "googleapis/google-auth-library-nodejs", | ||
"distribution_name": "google-auth-library" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
[//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
[//]: # "To regenerate it, use `python -m synthtool`." | ||
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> | ||
|
||
# [Google Auth Library: Node.js Samples](https://github.com/googleapis/google-auth-library-nodejs) | ||
|
||
[![Open in Cloud Shell][shell_img]][shell_link] | ||
|
||
|
||
|
||
## Table of Contents | ||
|
||
* [Before you begin](#before-you-begin) | ||
* [Samples](#samples) | ||
* [Adc](#adc) | ||
* [Compute](#compute) | ||
* [Credentials](#credentials) | ||
* [Headers](#headers) | ||
* [Iap](#iap) | ||
* [Jwt](#jwt) | ||
* [Keepalive](#keepalive) | ||
* [Keyfile](#keyfile) | ||
* [Oauth2](#oauth2) | ||
* [Verify Id Token](#verify-id-token) | ||
|
||
## Before you begin | ||
|
||
Before running the samples, make sure you've followed the steps outlined in | ||
[Using the client library](https://github.com/googleapis/google-auth-library-nodejs#using-the-client-library). | ||
|
||
## Samples | ||
|
||
|
||
|
||
### Adc | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/adc.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/adc.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node adc.js` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Compute | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/compute.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/compute.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node compute.js` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Credentials | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/credentials.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/credentials.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node credentials.js` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Headers | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/headers.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/headers.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node headers.js` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Iap | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/iap.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/iap.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node iap.js` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Jwt | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/jwt.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/jwt.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node jwt.js` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Keepalive | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/keepalive.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/keepalive.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node keepalive.js` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Keyfile | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/keyfile.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/keyfile.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node keyfile.js` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Oauth2 | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/oauth2.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/oauth2.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node oauth2.js` | ||
|
||
|
||
----- | ||
|
||
|
||
|
||
|
||
### Verify Id Token | ||
|
||
View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/verifyIdToken.js). | ||
|
||
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/verifyIdToken.js,samples/README.md) | ||
|
||
__Usage:__ | ||
|
||
|
||
`node verifyIdToken.js` | ||
|
||
|
||
|
||
|
||
|
||
|
||
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png | ||
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-auth-library-nodejs&page=editor&open_in_editor=samples/README.md | ||
[product-docs]: https://cloud.google.com/docs/authentication/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters