Commit 35e8cab
Add a list of allowed_client_ids to EchoApi.get_user_email. (#1992)
The use of an OAuth token issued by accounts.google.com triggers
a special path in Endpoints Framework, which validates if the
client id ('azp' claim of JWT token) is included in allowed_client_ids
list supplied to @endpoints.method decorator.
Without the change, sample client described at [1] receives 401
Unauthorized errors when attempting to access the API.
[1] https://cloud.google.com/endpoints/docs/frameworks/python/javascript-client1 parent 014d40b commit 35e8cab
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
0 commit comments