I have two projects. One with a login and one that requires to be logged in to the first project.
So I guess my question would be is it possible to login to the first project and have access to the second project? Restricting access to the second project if not logged in to the first project.
Hope I explained myself correctly. Thanks in advance for any direction.
Hey @brad, yes it is possible and in fact a mobile project is a good example on how it works..
I'll recomend you to restrict the server actions in the first project (where the security provider is) and define the cors settings on the server side options (where you select debug on/off)..
When you create the login form (in your second project) you can select the API from the first project (check the dropdown in the upper right corner)
PS: When a login request is made, you have a tab in the dev tools -> network -> loginapiname.php that is called "cookies".. There you can see the response cookies and, if it has a yellow background, then it means cookies where not possible to be stored on the browser..
Thanks @franse . I was hoping to avoid another login on the second project. As a company we have too many logins as it is. The goal is to secure the second project with the same credentials as the first. In other words, logging in to the main project/dashboard will automatically log you into the second project/dashboard. I take it this is not possible to have one login provide access to two projects?