Skip to content

Commit 06b5e91

Browse files
authored
Merge pull request #478 from saicheems/master
Temporarily remove some sample features
2 parents c8cfbe2 + 0961032 commit 06b5e91

File tree

3 files changed

+2
-23
lines changed

3 files changed

+2
-23
lines changed

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
This demonstrates how to use Google Cloud Endpoints Frameworks v2 on Google App Engine Standard Environment using Python.
44

5-
This sample consists of two parts:
6-
7-
1. The backend
8-
2. The clients
9-
105
## Setup
116

127
Create a `lib` directory in which to install the Endpoints Frameworks v2 library. For more info, see [Installing a library](https://cloud.google.com/appengine/docs/python/tools/using-libraries-python-27#installing_a_library).
@@ -28,15 +23,7 @@ In your web browser, go to the following address: http://localhost:8080/\_ah/api
2823

2924
## Deploying to Google App Engine
3025

31-
Generate a swagger file by running: `endpointscfg.py get_swagger_spec main.EchoApi --hostname your-service.appspot.com`
32-
33-
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`.
34-
35-
Deploy the generated swagger spec to Google Cloud Service Management: `gcloud alpha service-management deploy echo-v1_swagger.json`
36-
37-
Open the `app.yaml` file and in the `env_variables` section, replace `your-service.appspot.com` with your service name, and `2016-08-01r0` with your uploaded service management configuration.
38-
39-
Then, deploy the sample using `gcloud`:
26+
Deploy the sample using `gcloud`:
4027

4128
$ gcloud beta app deploy
4229

appengine/standard/endpoints-frameworks-v2/echo/app.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,3 @@ libraries:
1212
version: 2.6
1313
- name: ssl
1414
version: 2.7.11
15-
16-
env_variables:
17-
# Replace with your endpoints service name.
18-
ENDPOINTS_SERVICE_NAME: your-service.appspot.com
19-
# Replace with the version Id of your uploaded Endpoints service.
20-
ENDPOINTS_SERVICE_VERSION: 2016-08-01r0

appengine/standard/endpoints-frameworks-v2/echo/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ def echo(self, request):
5353
path='echo/getUserEmail',
5454
http_method='GET',
5555
# Require auth tokens to have the following scopes to access this API.
56-
scopes=[endpoints.EMAIL_SCOPE],
57-
# OAuth2 audiences allowed in incoming tokens.
58-
audiences=['your-oauth-client-id.com'])
56+
scopes=[endpoints.EMAIL_SCOPE])
5957
def get_user_email(self, request):
6058
user = endpoints.get_current_user()
6159
# If there's no user defined, the request was unauthenticated, so we

0 commit comments

Comments
 (0)