From 1d209553d4673e73b5be0740aa828c4fed2336f8 Mon Sep 17 00:00:00 2001 From: Lawrence L Date: Tue, 24 Jan 2017 09:20:35 -0800 Subject: [PATCH] Update openapi.yaml Incorporate new prefix for x-issuer and x-jwks_uri flags. Stops gcloud throwing warnings when sample openapi.yaml is deployed. See https://github.com/GoogleCloudPlatform/java-docs-samples/issues/483 --- endpoints/getting-started/src/main/appengine/openapi.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/endpoints/getting-started/src/main/appengine/openapi.yaml b/endpoints/getting-started/src/main/appengine/openapi.yaml index 182e0636b32..634ef8b38dc 100644 --- a/endpoints/getting-started/src/main/appengine/openapi.yaml +++ b/endpoints/getting-started/src/main/appengine/openapi.yaml @@ -94,9 +94,9 @@ securityDefinitions: flow: "implicit" type: "oauth2" # This must match the 'iss' field in the JWT. - x-issuer: "jwt-client.endpoints.sample.google.com" + x-google-issuer: "jwt-client.endpoints.sample.google.com" # Update this with your service account's email address. - x-jwks_uri: "https://www.googleapis.com/service_accounts/v1/jwk/YOUR-SERVICE-ACCOUNT-EMAIL" + x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/jwk/YOUR-SERVICE-ACCOUNT-EMAIL" # This section configures authentication using Google OAuth2 ID Tokens. # ID Tokens can be obtained using OAuth2 clients, and can be used to access # your API on behalf of a particular user. @@ -104,5 +104,5 @@ securityDefinitions: authorizationUrl: "" flow: "implicit" type: "oauth2" - x-issuer: "accounts.google.com" - x-jwks_uri: "https://www.googleapis.com/oauth2/v1/certs" + x-google-issuer: "accounts.google.com" + x-google-jwks_uri: "https://www.googleapis.com/oauth2/v1/certs"