File tree 1 file changed +4
-4
lines changed
appengine/flexible/endpoints/clients/service_to_service_gae_default
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
from google .appengine .api import app_identity
24
24
import webapp2
25
25
26
- DEFAUTL_SERVICE_ACCOUNT = 'YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com'
26
+ DEFAULT_SERVICE_ACCOUNT = 'YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com'
27
27
HOST = "YOUR-SERVER-PROJECT-ID.appspot.com"
28
28
29
29
@@ -41,12 +41,12 @@ def generate_jwt():
41
41
# expires after one hour.
42
42
"exp" : now + 3600 ,
43
43
# iss is the Google App Engine default service account email.
44
- 'iss' : DEFAUTL_SERVICE_ACCOUNT ,
45
- 'sub' : DEFAUTL_SERVICE_ACCOUNT ,
44
+ 'iss' : DEFAULT_SERVICE_ACCOUNT ,
45
+ 'sub' : DEFAULT_SERVICE_ACCOUNT ,
46
46
# aud must match 'audience' in the security configuration in your
47
47
# swagger spec.It can be any string.
48
48
'aud' : 'echo.endpoints.sample.google.com' ,
49
- "email" : DEFAUTL_SERVICE_ACCOUNT
49
+ "email" : DEFAULT_SERVICE_ACCOUNT
50
50
})
51
51
52
52
headerAndPayload = '{}.{}' .format (
You can’t perform that action at this time.
0 commit comments