|
| 1 | +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." |
| 2 | +[//]: # "To regenerate it, use `python -m synthtool`." |
| 3 | +<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"/> |
| 4 | + |
| 5 | +# [Google Auth Library: Node.js Samples](https://github.com/googleapis/google-auth-library-nodejs) |
| 6 | + |
| 7 | +[![Open in Cloud Shell][shell_img]][shell_link] |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +## Table of Contents |
| 12 | + |
| 13 | +* [Before you begin](#before-you-begin) |
| 14 | +* [Samples](#samples) |
| 15 | + * [Adc](#adc) |
| 16 | + * [Compute](#compute) |
| 17 | + * [Credentials](#credentials) |
| 18 | + * [Headers](#headers) |
| 19 | + * [Iap](#iap) |
| 20 | + * [Jwt](#jwt) |
| 21 | + * [Keepalive](#keepalive) |
| 22 | + * [Keyfile](#keyfile) |
| 23 | + * [Oauth2](#oauth2) |
| 24 | + * [Verify Id Token](#verify-id-token) |
| 25 | + |
| 26 | +## Before you begin |
| 27 | + |
| 28 | +Before running the samples, make sure you've followed the steps outlined in |
| 29 | +[Using the client library](https://github.com/googleapis/google-auth-library-nodejs#using-the-client-library). |
| 30 | + |
| 31 | +## Samples |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +### Adc |
| 36 | + |
| 37 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/adc.js). |
| 38 | + |
| 39 | +[![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) |
| 40 | + |
| 41 | +__Usage:__ |
| 42 | + |
| 43 | + |
| 44 | +`node adc.js` |
| 45 | + |
| 46 | + |
| 47 | +----- |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +### Compute |
| 53 | + |
| 54 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/compute.js). |
| 55 | + |
| 56 | +[![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) |
| 57 | + |
| 58 | +__Usage:__ |
| 59 | + |
| 60 | + |
| 61 | +`node compute.js` |
| 62 | + |
| 63 | + |
| 64 | +----- |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +### Credentials |
| 70 | + |
| 71 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/credentials.js). |
| 72 | + |
| 73 | +[![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) |
| 74 | + |
| 75 | +__Usage:__ |
| 76 | + |
| 77 | + |
| 78 | +`node credentials.js` |
| 79 | + |
| 80 | + |
| 81 | +----- |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | +### Headers |
| 87 | + |
| 88 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/headers.js). |
| 89 | + |
| 90 | +[![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) |
| 91 | + |
| 92 | +__Usage:__ |
| 93 | + |
| 94 | + |
| 95 | +`node headers.js` |
| 96 | + |
| 97 | + |
| 98 | +----- |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | +### Iap |
| 104 | + |
| 105 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/iap.js). |
| 106 | + |
| 107 | +[![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) |
| 108 | + |
| 109 | +__Usage:__ |
| 110 | + |
| 111 | + |
| 112 | +`node iap.js` |
| 113 | + |
| 114 | + |
| 115 | +----- |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | +### Jwt |
| 121 | + |
| 122 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/jwt.js). |
| 123 | + |
| 124 | +[![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) |
| 125 | + |
| 126 | +__Usage:__ |
| 127 | + |
| 128 | + |
| 129 | +`node jwt.js` |
| 130 | + |
| 131 | + |
| 132 | +----- |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | +### Keepalive |
| 138 | + |
| 139 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/keepalive.js). |
| 140 | + |
| 141 | +[![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) |
| 142 | + |
| 143 | +__Usage:__ |
| 144 | + |
| 145 | + |
| 146 | +`node keepalive.js` |
| 147 | + |
| 148 | + |
| 149 | +----- |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | +### Keyfile |
| 155 | + |
| 156 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/keyfile.js). |
| 157 | + |
| 158 | +[![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) |
| 159 | + |
| 160 | +__Usage:__ |
| 161 | + |
| 162 | + |
| 163 | +`node keyfile.js` |
| 164 | + |
| 165 | + |
| 166 | +----- |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | +### Oauth2 |
| 172 | + |
| 173 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/oauth2.js). |
| 174 | + |
| 175 | +[![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) |
| 176 | + |
| 177 | +__Usage:__ |
| 178 | + |
| 179 | + |
| 180 | +`node oauth2.js` |
| 181 | + |
| 182 | + |
| 183 | +----- |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | +### Verify Id Token |
| 189 | + |
| 190 | +View the [source code](https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/verifyIdToken.js). |
| 191 | + |
| 192 | +[![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) |
| 193 | + |
| 194 | +__Usage:__ |
| 195 | + |
| 196 | + |
| 197 | +`node verifyIdToken.js` |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png |
| 205 | +[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 |
| 206 | +[product-docs]: https://cloud.google.com/docs/authentication/ |
0 commit comments