Skip to content

Commit 2b96dec

Browse files
llatifbshaffer
authored andcommitted
Update x-issuer and x-jwks_uri flags (GoogleCloudPlatform#307)
Incorporate new prefix for x-issuer and x-jwks_uri flags. Stops gcloud throwing warnings when sample openapi.yaml is deployed.
1 parent 8df540e commit 2b96dec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

endpoints/getting-started/openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ securityDefinitions:
9595
flow: "implicit"
9696
type: "oauth2"
9797
# This must match the 'iss' field in the JWT.
98-
x-issuer: "jwt-client.endpoints.sample.google.com"
98+
x-google-issuer: "jwt-client.endpoints.sample.google.com"
9999
# Update this with your service account's email address.
100-
x-jwks_uri: "https://www.googleapis.com/service_accounts/v1/jwk/YOUR-SERVICE-ACCOUNT-EMAIL"
100+
x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/jwk/YOUR-SERVICE-ACCOUNT-EMAIL"
101101
# This section configures authentication using Google OAuth2 ID Tokens.
102102
# ID Tokens can be obtained using OAuth2 clients, and can be used to access
103103
# your API on behalf of a particular user.
104104
google_id_token:
105105
authorizationUrl: ""
106106
flow: "implicit"
107107
type: "oauth2"
108-
x-issuer: "https://accounts.google.com"
109-
x-jwks_uri: "https://www.googleapis.com/oauth2/v1/certs"
108+
x-google-issuer: "https://accounts.google.com"
109+
x-google-jwks_uri: "https://www.googleapis.com/oauth2/v1/certs"

0 commit comments

Comments
 (0)