auth0-python icon indicating copy to clipboard operation
auth0-python copied to clipboard

AsyncIO - Add asyncio support to JwksFetcher

Open ca-simone-chiorazzo opened this issue 3 years ago • 1 comments

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

ca-simone-chiorazzo avatar Sep 22 '22 15:09 ca-simone-chiorazzo

Thanks for raising this @ca-simone-chiorazzo - will take a look at this and update you shortly

adamjmcgrath avatar Oct 11 '22 14:10 adamjmcgrath