auth0 / symfony

Symfony SDK for Auth0 Authentication and Management APIs.
MIT License
124 stars 74 forks source link

feat: Add Symfony Cache component support #140

Closed evansims closed 1 year ago

evansims commented 1 year ago

This PR adds Symfony Cache component support to the SDK. The SDK will invoke the PSR-6-based interface, and connect it directly to the CacheItemPoolInterface property of the Auth0-PHP SDK. This caching feature will be used for JWKS caching to reduce network requests, and caching of Management API tokens generated through the API.

By default, it will use the basic cache.app pool, which uses the filesystem adapter. Developers can add new cache pools and define adapters in their config/package/cache.yaml file to customize the behavior.