I have my project written in php using symfony for the back end and using react for the front end, I made api calls through fetch from react, used the security.yaml file to make sure the user is authenticated before making requests ect...
Now I need to 'grant access' to certain api endpoints from one specific external website and here I got lost, how do I do that?
I started by making a new controller 'ApiController' specific for those endpoints but security wise how does this work? Should I have a 'api' user and still use the same loginAuthenticator, should I authenticate with API KEYs? how?
source https://stackoverflow.com/questions/68059174/rest-api-in-symfony-react-project
No comments:
Post a Comment