- [B/C Break] Changed the object mappings to mapped superclasses, this requires updating your app's configuration
- Added support for checking the request path in the
refresh_jwt
authenticator - Deprecated not configuring the request path to check in the
refresh_jwt
authenticator - Added feature to add the expiration timestamp on the response
- Dropped support for MongoDB ODM 1.x
- Dropped support for Symfony 3.4
- Added support for Symfony 6.0
- Added a LogoutEventListener that will invalidate the supplied refresh token and clear the cookie (if configured) when a LogoutEvent is triggered on the configured firewall.
- Added
Gesdinet\JWTRefreshTokenBundle\Doctrine\RefreshTokenRepositoryInterface
Gesdinet\JWTRefreshTokenBundle\Doctrine\RefreshTokenManager
now requires all object repositories implementGesdinet\JWTRefreshTokenBundle\Doctrine\RefreshTokenRepositoryInterface
- Added
Gesdinet\JWTRefreshTokenBundle\Request\Extractor\ExtractorInterface
as an interface for extracting the refresh token from the request, implementations provided by this bundle include:Gesdinet\JWTRefreshTokenBundle\Request\Extractor\ChainExtractor
- Calls all registered extractors to find the request token (by default, this extractor is aliased to the interface in the DI container)Gesdinet\JWTRefreshTokenBundle\Request\Extractor\RequestBodyExtractor
- Decodes a JSON request body and loads the token from itGesdinet\JWTRefreshTokenBundle\Request\Extractor\RequestParameterExtractor
- Loads the refresh token by calling$request->get()
- Removed the
Gesdinet\JWTRefreshTokenBundle\Request\RequestRefreshToken
class, aGesdinet\JWTRefreshTokenBundle\Request\Extractor\ExtractorInterface
implementation should be used instead Gesdinet\JWTRefreshTokenBundle\Model\RefreshTokenInterface
now extendsStringable
, refresh token models now require a__toString()
method