You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: endpoints/getting-started/README.md
+36-3Lines changed: 36 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -51,19 +51,33 @@ With the API key, you can use the echo client to access the API:
51
51
52
52
### Using the JWT client.
53
53
54
-
The JWT client demonstrates how to use service accounts to authenticate to endpoints. To use the client, you'll need both an API key (as described in the echo client section) and a service account. To create a service account:
54
+
The JWT client demonstrates how to use service accounts to authenticate to
55
+
endpoints. To use the client, you'll need both an API key (as described in the
56
+
echo client section) and a service account. To create a service account:
55
57
56
58
1. Open the Credentials page of the API Manager in the [Cloud Console](https://console.cloud.google.com/apis/credentials).
57
59
2. Click 'Create credentials'.
58
60
3. Select 'Service account key'.
59
61
4. In the 'Select service account' dropdown, select 'Create new service account'.
60
62
5. Choose 'JSON' for the key type.
63
+
6. Click on your newly created service account credentials and then click the
64
+
'Download JSON' button to download a json file with your credentials. You
65
+
will use this later.
61
66
62
67
To use the service account for authentication:
63
68
64
-
1. Update the `google_jwt`'s `x-google-jwks_uri` in `openapi.yaml` with your service account's email address.
69
+
1. Update `YOUR-SERVICE-ACCOUNT-EMAIL` with your service account's email address
70
+
in `openapi.yaml` (if you're using GKE or GCE) or `openapi-appengine.yaml`
71
+
(if you're using App Engine Flex).
72
+
73
+
google_jwt:
74
+
# Update this with your service account's email address.
0 commit comments