Hello! Faced such a task: it is necessary to allow users of several applications (for example, 3 applications) laravel with different domains to authorize through the fourth application. The database is the same for everyone. and it is advisable to authorize so that the user does not notice it at all, i.e. without pressing the login button. Comes to the site - and he is already logged in. I tried to use passport Laravel. The network has found some vague solutions but they do not suit me. I completely installed and configured a passport on the server for authentication. there is a page where you can add clients and OAuth tokens for personal access, several clients have been created for different sites for Auth :: user, but I don’t know what to do next. Please tell me what to do with this. Thank you in advance.

  • As it is not very clear that you do not understand, you can not understand how to send headers with authorization or what? - Orange_shadow
  • it's just not clear to me what to do next in principle. I did not find any examples on the network. However, I still have to authorize the user on Site A through Site D, for example, which sequence of actions. Maybe I don’t know something theoretically yet / I don’t understand - Sasha Sakhno
  • Well, I don’t have much time to paint, but the idea is to send a request with a login password for the first time, say that everything is OK, and give the key that you created in Laravel passoport, save the client key and send it later in the headers, OAuth, read what it’s like , here's another question and video - Orange_shadow

0