Skip to content

Commit 39eb47c

Browse files
authored
Fix OAuth2 instructions
1 parent d6cce21 commit 39eb47c

File tree

1 file changed

+1
-1
lines changed
  • appengine/standard/endpoints-frameworks-v2/echo

1 file changed

+1
-1
lines changed

appengine/standard/endpoints-frameworks-v2/echo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In your web browser, go to the following address: http://localhost:8080/\_ah/api
2525

2626
Generate a swagger file by running: `python lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname your-service.appspot.com`
2727

28-
To set up OAuth2, replace `your-oauth-client-id.com` under the `x-security` section in `echo-v1_swagger.json` with your OAuth2 client ID. If you want to use Google OAuth2 Playground, use `407408718192.apps.googleusercontent.com` as your audience. To generate a JWT, go to the following address: `https://developers.google.com/oauthplayground`.
28+
To set up OAuth2, replace `your-oauth-client-id.com` under `audiences` in the annotation for `get_user_email` with your OAuth2 client ID. If you want to use Google OAuth2 Playground, use `407408718192.apps.googleusercontent.com` as your audience. To generate a JWT, go to the following address: `https://developers.google.com/oauthplayground`.
2929

3030
Deploy the generated swagger spec to Google Cloud Service Management: `gcloud alpha service-management deploy echo-v1_swagger.json`
3131

0 commit comments

Comments
 (0)