awnali / SSO-laravel-5

Single sign on using laravel
78 stars 34 forks source link

Autologin not working #7

Open utsav-banerjee opened 6 years ago

utsav-banerjee commented 6 years ago

Hello,

First of all thanks a lot for this great implementation.

I was able to set up all three apps (codebase downlaoded), they are all using the same db.

Now, the problem is I have logged in to broker1 and it is expected that broker2 will autologin the user logged in in broker1 when I hit home. But that's not happening.

broker2 keeps redirecting me to the login page.

I checked laravel session content are the same.

I disabled CSRF checks in both the client app as it was giving me a token mismatch error.

I am using php 7.1.9

andersonn-roberto commented 6 years ago

Here happens the same, but, if I refresh the client2, then I got to home page. Is there a way to avoid the need to refresh the login page to get to home page successfully?

NVM. The problem was with the header() function.

shineirvin commented 5 years ago

No fix on this case ? I'm abandoning this package if so.