Skip to content

v2.6.0

Compare
Choose a tag to compare
@markomirosavljev markomirosavljev released this 28 Jul 13:31
· 4 commits to main since this release
b1043cf

What's Changed

Library will now use httpx instead of aiohttp to retrieve JWKS from cognito userpool. Increased Async LRU cache for function that retrieves JWKS. Added support for settings JWKS_URL per userpool

Major changes

  • aiohttp is removed as dependency, instead httpx will be used since aiohttp in some cases blocked async execution. #23

Changelog

  • httpx library is being used instead of aiohttp
  • Async LRU cache on cognito_jwt.decode.__get_keys_async is increased to 10 as temporal workaround to prevent application from retrieving JWKS with each request that uses different userpool than previous one. In the future there is idea to make this dynamic(either to set value through configuration or set it to length of userpools configuration field.).
  • Added support for JWKS_URL configuration per userpool which allow setting explicit URL where JWKS can be found for that userpool.

Full Changelog: v2.5.0...v2.6.0