-1

Now my web is used this provider and its working. But i need api token authentication. i need more user provider.

security:

providers:
    SecurityUserProvider:
        id: App\Security\SecurityUserProvider

1 Answers1

0

Try following Workflow

Make an API Endpoint for getting a JWT-Token. Store this Token in the User Entity. If you want with a timestamp to expire that Token.

In the App\Security\ApiTokenAuthenticator you Check if the given Token is stored. If yes => You know the User and you can check if token is valid with the Timestamp If no => the Token invalid