Skip to content

Commit

Permalink
Update to avoid deprecation warnings (#765)
Browse files Browse the repository at this point in the history
Incorporate new prefix for x-issuer and x-jwks_uri flags. Stops gcloud throwing warnings when sample openapi.yaml is deployed.
  • Loading branch information
llatif authored and Jon Wayne Parrott committed Jan 26, 2017
1 parent 1822e4e commit a2510fd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions endpoints/getting-started/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,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 App Engine default
# service account to sign a json web token. This is mostly used for
# server-to-server communication.
Expand All @@ -132,9 +132,9 @@ securityDefinitions:
flow: "implicit"
type: "oauth2"
# Replace YOUR-CLIENT-PROJECT-ID with your client project ID.
x-issuer: "[email protected]"
x-google-issuer: "[email protected]"
# Replace YOUR-CLIENT-PROJECT-ID with your client project ID.
x-jwks_uri: "https://www.googleapis.com/robot/v1/metadata/x509/[email protected]"
x-google-jwks_uri: "https://www.googleapis.com/robot/v1/metadata/x509/[email protected]"
# This section configures authentication using a service account
# to sign a json web token. This is mostly used for server-to-server
# communication.
Expand All @@ -153,12 +153,12 @@ 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"
# This section configures authentication using Firebase Auth.
firebase:
authorizationUrl: ""
flow: "implicit"
type: "oauth2"
x-issuer: "https://securetoken.google.com/YOUR-PROJECT-ID"
x-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/[email protected]"
x-google-issuer: "https://securetoken.google.com/YOUR-PROJECT-ID"
x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/[email protected]"

0 comments on commit a2510fd

Please sign in to comment.