Skip to content

Commit b4c2b18

Browse files
navingerdaniel-sanche
authored andcommitted
Updated comment about the aud claim. (GoogleCloudPlatform#1926)
1 parent 48701ca commit b4c2b18

File tree

1 file changed

+3
-2
lines changed
  • endpoints/getting-started/clients/service_to_service_gae_default

1 file changed

+3
-2
lines changed

endpoints/getting-started/clients/service_to_service_gae_default/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ def generate_jwt():
4343
# iss is the Google App Engine default service account email.
4444
'iss': DEFAULT_SERVICE_ACCOUNT,
4545
'sub': DEFAULT_SERVICE_ACCOUNT,
46-
# aud must match 'audience' in the security configuration in your
47-
# OpenAPI spec.It can be any string.
46+
# Typically, the audience is the hostname of your API. The aud
47+
# defined here must match the audience in the security configuration
48+
# in yourOpenAPI spec.
4849
'aud': 'echo.endpoints.sample.google.com',
4950
"email": DEFAULT_SERVICE_ACCOUNT
5051
})

0 commit comments

Comments
 (0)