auth0-python
auth0-python copied to clipboard
AsyncIO - Add asyncio support to JwksFetcher
Describe the problem you'd like to have solved
You did a great job in adding asyncio support for the management and authentication clients. In order to have completely asyncio approach, it would be great to have also an asyncio implementation for the JWKS fetcher.
As of today, such object is IO blocking and can block a python asyncio app for a while due to the download of a resource from internet.
Describe the ideal solution
Add an AsyncJWKSFetcher implementation that leverage aiohttp to execute HTTP calls
Alternatives and current work-arounds
Additional information, if any
Thanks for raising this @ca-simone-chiorazzo - will take a look at this and update you shortly