Skip to content

Commit f039bce

Browse files
committed
Include https for Google ID token.
1 parent f9d844d commit f039bce

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

appengine/endpoints/swagger.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ paths:
6464
# Your OAuth2 client's Client ID must be added here. You can add
6565
# multiple client IDs to accept tokens from multiple clients.
6666
- "YOUR-CLIENT-ID"
67+
- google_id_token_https:
68+
audiences:
69+
# Your OAuth2 client's Client ID must be added here. You can add
70+
# multiple client IDs to accept tokens from multiple clients.
71+
- "YOUR-CLIENT-ID"
6772
definitions:
6873
echoMessage:
6974
properties:
@@ -97,9 +102,16 @@ securityDefinitions:
97102
x-jwks_uri: "https://www.googleapis.com/service_accounts/v1/jwk/YOUR-SERVICE-ACCOUNT-EMAIL"
98103
# This section configures authentication using Google OAuth2 ID Tokens.
99104
# ID Tokens can be obtained using OAuth2 clients, and can be used to access
100-
# your API on behalf of a particular user.
105+
# your API on behalf of a particular user. Depending on the account used to
106+
# sign in, the x-issuer can either be accounts.google.com or
107+
# https://accounts.google.com.
101108
google_id_token:
102109
authorizationUrl: ""
103110
flow: "implicit"
104111
type: "oauth2"
105112
x-issuer: "accounts.google.com"
113+
google_id_token_https:
114+
authorizationUrl: ""
115+
flow: "implicit"
116+
type: "oauth2"
117+
x-issuer: "https://accounts.google.com"

0 commit comments

Comments
 (0)