talkiq / gcloud-aio

(Asyncio OR Threadsafe) Google Cloud Client Library for Python
https://talkiq.github.io/gcloud-aio
265 stars 90 forks source link

fix(rest-auth): resp.text() for aiohttp but resp.text for requests lib #695

Closed leanaha closed 4 months ago

leanaha commented 4 months ago

Summary

Since this lib uses aiohttp for aio calls and requests for rest calls, we need to suppport both usages.

For getting iap token I use the same solution as in lines 200-203.