Haven't tried this but doesn't the remember me work if you share the users table and set the cookie for multiple domains? Or maybe you could get the remember_me token and send it to the login server and then use auth()->login($userId) if all is good.
Oct 7, 2016
5
Level 8
One login for multiple sites
Hey friends,
I've got a couple of apps I'm building on Laravel. They are all going to be separate systems, likely on separate servers but part of one "ecosystem". I have a goal of allowing people to sign up on any of the sites that I create, and that login can then be used on any of the other sites.
Is this the sort of thing Passport is used for? If so, what's the best way to implement it? Should I pick just one site and make that the "main" user database, or spin up a single app just for holding all the user data?
Thanks in advance for your feedback/ideas,
Andy
Please or to participate in this conversation.