Is it possible to realize such flow:
- User puts login and password into form on my site and submits it
- My server grabs data and uses Guzzle or another tool to make a request and proceed with authentication some site (for example facebook)
- Facebook sends back cookies back to guzzle, which will contain some token(s) which will be used further.
- Server sets cookies for the user. Next time user would like to go on facebook - he will be logged in (using grabbed earlier cookies)
I am using PHP and Guzzle on server, but it does not quite matter. As I guess, it is not possible, because we should set cookies for another domain, which is not secure. But, I haven't found any alike topics, so I must be sure.
Thanks!