@@ -45,12 +45,8 @@ paths:
4545 description : " Authenication info."
4646 schema :
4747 $ref : " #/definitions/authInfoResponse"
48- x-security :
49- - google_jwt :
50- audiences :
51- # This must match the "aud" field in the JWT. You can add multiple
52- # audiences to accept JWTs from multiple clients.
53- - " echo.endpoints.sample.google.com"
48+ security :
49+ - google_jwt : []
5450 " /auth/info/googleidtoken " :
5551 get :
5652 description : " Returns the requests' authentication information."
@@ -62,12 +58,8 @@ paths:
6258 description : " Authenication info."
6359 schema :
6460 $ref : " #/definitions/authInfoResponse"
65- x-security :
66- - google_id_token :
67- audiences :
68- # Your OAuth2 client's Client ID must be added here. You can add
69- # multiple client IDs to accept tokens from multiple clients.
70- - " YOUR-CLIENT-ID"
61+ security :
62+ - google_id_token : []
7163
7264definitions :
7365 echoMessage :
@@ -98,6 +90,9 @@ securityDefinitions:
9890 x-google-issuer : " jwt-client.endpoints.sample.google.com"
9991 # Update this with your service account's email address.
10092 x-google-jwks_uri : " https://www.googleapis.com/service_accounts/v1/jwk/YOUR-SERVICE-ACCOUNT-EMAIL"
93+ # This must match the "aud" field in the JWT. You can add multiple
94+ # audiences to accept JWTs from multiple clients.
95+ x-google-audiences : " echo.endpoints.sample.google.com"
10196 # This section configures authentication using Google OAuth2 ID Tokens.
10297 # ID Tokens can be obtained using OAuth2 clients, and can be used to access
10398 # your API on behalf of a particular user.
@@ -106,4 +101,7 @@ securityDefinitions:
106101 flow : " implicit"
107102 type : " oauth2"
108103 x-google-issuer : " https://accounts.google.com"
109- x-google-jwks_uri : " https://www.googleapis.com/oauth2/v1/certs"
104+ x-google-jwks_uri : " https://www.googleapis.com/oauth2/v3/certs"
105+ # Your OAuth2 client's Client ID must be added here. You can add
106+ # multiple client IDs to accept tokens from multiple clients.
107+ x-google-audiences : " YOUR-CLIENT-ID"
0 commit comments