JWTRefreshTokenBundle
JWTRefreshTokenBundle copied to clipboard
RefreshToken service constructor
Hi,
For my needs, I need to decorate the RefreshTokenAuthenticator
(It is to add attributes to the created token). The decoration uses the Symfony service declaration (available here). Unfortunatly, the RefreshToken
service make this impossible as it requires a RefreshTokenAuthenticator
in its constructor. After inspection of said class, it doesn't seem it uses any specific method of the RefreshTokenAuthenticator
.
Is it possible to relax the requirement in the constructor ? Instead of RefreshTokenAuthenticator
, I suggest to put AbstractGuardAuthenticator
For the credentials, it is possible to send an object of specific class to enforce the presence of the token
field. I am able to work on a pull request if needed.
Cordialy,