From f8a06c19edbf6765d24358d30e37c3c730b91fa1 Mon Sep 17 00:00:00 2001 From: halgrimur Date: Thu, 8 Dec 2016 10:50:31 -0800 Subject: [PATCH] Update main.py --- .../clients/service_to_service_gae_default/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appengine/flexible/endpoints/clients/service_to_service_gae_default/main.py b/appengine/flexible/endpoints/clients/service_to_service_gae_default/main.py index 5ff84986fa0..60676886b05 100644 --- a/appengine/flexible/endpoints/clients/service_to_service_gae_default/main.py +++ b/appengine/flexible/endpoints/clients/service_to_service_gae_default/main.py @@ -23,7 +23,7 @@ from google.appengine.api import app_identity import webapp2 -DEFAUTL_SERVICE_ACCOUNT = 'YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com' +DEFAULT_SERVICE_ACCOUNT = 'YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com' HOST = "YOUR-SERVER-PROJECT-ID.appspot.com" @@ -41,12 +41,12 @@ def generate_jwt(): # expires after one hour. "exp": now + 3600, # iss is the Google App Engine default service account email. - 'iss': DEFAUTL_SERVICE_ACCOUNT, - 'sub': DEFAUTL_SERVICE_ACCOUNT, + 'iss': DEFAULT_SERVICE_ACCOUNT, + 'sub': DEFAULT_SERVICE_ACCOUNT, # aud must match 'audience' in the security configuration in your # swagger spec.It can be any string. 'aud': 'echo.endpoints.sample.google.com', - "email": DEFAUTL_SERVICE_ACCOUNT + "email": DEFAULT_SERVICE_ACCOUNT }) headerAndPayload = '{}.{}'.format(