@@ -45,12 +45,8 @@ paths:
45
45
description : " Authenication info."
46
46
schema :
47
47
$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 : []
54
50
" /auth/info/googleidtoken " :
55
51
get :
56
52
description : " Returns the requests' authentication information."
@@ -62,12 +58,8 @@ paths:
62
58
description : " Authenication info."
63
59
schema :
64
60
$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 : []
71
63
72
64
definitions :
73
65
echoMessage :
@@ -98,6 +90,9 @@ securityDefinitions:
98
90
x-google-issuer : " jwt-client.endpoints.sample.google.com"
99
91
# Update this with your service account's email address.
100
92
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"
101
96
# This section configures authentication using Google OAuth2 ID Tokens.
102
97
# ID Tokens can be obtained using OAuth2 clients, and can be used to access
103
98
# your API on behalf of a particular user.
@@ -106,4 +101,7 @@ securityDefinitions:
106
101
flow : " implicit"
107
102
type : " oauth2"
108
103
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