Answer the question
In order to leave comments, you need to log in
Registration and user login via API in symfony. How to do?
Hello. The crux of the matter is as follows. You need to separate the application so that the frontend and backend are separate. The frontend will contact the api for data, fill everything in json and parse everything into blocks and content itself.
Therefore, it is necessary that the registration and login of the user be also implemented via api
looked towards baerer auth, jwm, but I really could not figure out anything how it should function,
in theory, when a user enters the main page, you need to contact the api and collect his data
if there is no data on the user, then show the registration or login buttons
if the user logs in, then it is necessary, in theory, to take some kind of api key or something else, enter it in a cookie or somewhere else, so that later it can be passed in all api requests and the server understands that the user is authorized
the second question, what data to send for the form ? and how to fasten google captcha for registration and login? What are some ideas? Thanks to all
Answer the question
In order to leave comments, you need to log in
You somehow mixed everything together, captcha, API, Google, Forms.
As I understand it, you want to have a separate architecture.
About separation, multiple cores
Here you can implement separate loading of bundles, configurations, templates, and so on.
But at the same time, you will still have the general repositories of the entity and much more.
Authorization, well, there are standard Symfony mechanisms that can be upgraded and JWT can be used.
Nothing to say about captcha.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question