web-token / jwt-framework

JWT Framework
MIT License
888 stars 105 forks source link

Add PSR6 alternative to cache JWKSet #550

Closed qdequippe closed 6 months ago

qdequippe commented 6 months ago
Q A
Branch?
Bug fix? no
New feature? yes
Deprecations? no
Tickets #537
License MIT

Option to rely on PSR Cache instead of HTTP Cache

See https://github.com/web-token/jwt-framework/issues/537 for more details

Spomky commented 6 months ago

Hello @qdequippe,

Many thanks for this PR. I changed your proposal by using the NullAdapter by default to avoid testing the presence of the caching service. This adapter can be changed with the method enabledCache. Also, for hasing function is now xxh128 instead of sha1. It is fast, shorter and not broken.