Category : guard

My Request goes through a ApiUserAuthenticator extends AbstractGuardAuthenticator to authenticate a request to an API. In the getUser() method I return an ApiUser. public function getUser($credentials, UserProviderInterface $userProvider) { return new ApiUser(‘jean’, [‘ROLE_API_USER’], ‘[email protected]’); } it works well because the user appears a little further in my controller. /** * @Route("/", name="API_INDEX") */ public function ..

Read more