N
N
nano_e_t_42022-04-08 17:11:49
go
nano_e_t_4, 2022-04-08 17:11:49

How to make an authorization system?

Hello everyone
. I'm doing a small project, the front part on react, back on go. And here you need an authorization service. Now I'm doing it through the ssid cookie - as soon as the user enters the authorization data, they are checked on the back and if successful, then the host service writes the ssid cookie, which is stored in the browser's storage by React. Then, with each request from the front, where authorization is needed, the ssid header with the cookie value is thrown. On the back, this info is in the cache, and for each request, it accordingly checks for the presence of this cookie and its value. It seems that the option looks working, but maybe there are pitfalls that I can’t see ...
Please tell me how such a system will work or maybe there are already ready-made guides for such systems. And then Google basically tells me mainly about the implementation of hell or something like that

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question