i have webservice which is provider for my \"regular\" users. I want to use FosUserBundle for my administrators. Above is my security configuration. regular users login work
In some instances, I can see that this is caused by default security settings generated when symfony is installed by composer.
In my case, in my security.yml, I had this section:
default:
anonymous: ~
As this was working as a catch-all, it was interfering with FOSUserBundle's ability to handle the route. Just delete it or, if you have a route you've specified yourself, make sure it's not also handling the same URL path.