Skip to content

Commit a2510fd

Browse files
llatifJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Update to avoid deprecation warnings (GoogleCloudPlatform#765)
Incorporate new prefix for x-issuer and x-jwks_uri flags. Stops gcloud throwing warnings when sample openapi.yaml is deployed.
1 parent 1822e4e commit a2510fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

endpoints/getting-started/openapi.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ securityDefinitions:
121121
flow: "implicit"
122122
type: "oauth2"
123123
# This must match the 'iss' field in the JWT.
124-
x-issuer: "jwt-client.endpoints.sample.google.com"
124+
x-google-issuer: "jwt-client.endpoints.sample.google.com"
125125
# Update this with your service account's email address.
126-
x-jwks_uri: "https://www.googleapis.com/service_accounts/v1/jwk/YOUR-SERVICE-ACCOUNT-EMAIL"
126+
x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/jwk/YOUR-SERVICE-ACCOUNT-EMAIL"
127127
# This section configures authentication using Google App Engine default
128128
# service account to sign a json web token. This is mostly used for
129129
# server-to-server communication.
@@ -132,9 +132,9 @@ securityDefinitions:
132132
flow: "implicit"
133133
type: "oauth2"
134134
# Replace YOUR-CLIENT-PROJECT-ID with your client project ID.
135-
x-issuer: "YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com"
135+
x-google-issuer: "YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com"
136136
# Replace YOUR-CLIENT-PROJECT-ID with your client project ID.
137-
x-jwks_uri: "https://www.googleapis.com/robot/v1/metadata/x509/YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com"
137+
x-google-jwks_uri: "https://www.googleapis.com/robot/v1/metadata/x509/YOUR-CLIENT-PROJECT-ID@appspot.gserviceaccount.com"
138138
# This section configures authentication using a service account
139139
# to sign a json web token. This is mostly used for server-to-server
140140
# communication.
@@ -153,12 +153,12 @@ securityDefinitions:
153153
authorizationUrl: ""
154154
flow: "implicit"
155155
type: "oauth2"
156-
x-issuer: "accounts.google.com"
157-
x-jwks_uri: "https://www.googleapis.com/oauth2/v1/certs"
156+
x-google-issuer: "accounts.google.com"
157+
x-google-jwks_uri: "https://www.googleapis.com/oauth2/v1/certs"
158158
# This section configures authentication using Firebase Auth.
159159
firebase:
160160
authorizationUrl: ""
161161
flow: "implicit"
162162
type: "oauth2"
163-
x-issuer: "https://securetoken.google.com/YOUR-PROJECT-ID"
164-
x-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/securetoken@system.gserviceaccount.com"
163+
x-google-issuer: "https://securetoken.google.com/YOUR-PROJECT-ID"
164+
x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/securetoken@system.gserviceaccount.com"

0 commit comments

Comments
 (0)