-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to avoid deprecation warnings (#765)
Incorporate new prefix for x-issuer and x-jwks_uri flags. Stops gcloud throwing warnings when sample openapi.yaml is deployed.
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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. | ||
|
@@ -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]" |