JWTRefreshTokenBundle icon indicating copy to clipboard operation
JWTRefreshTokenBundle copied to clipboard

RefreshToken service constructor

Open Exalyon opened this issue 4 years ago • 0 comments

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,

Exalyon avatar Jul 16 '20 15:07 Exalyon