ProxyConnect will send request to authentication page to get information,
It uses ProxyRequest function, (Line 1005 in functions.general.php)
$Handler = curl_init();
curl_setopt($Handler, CURLOPT_URL, $Url);
curl_setopt($Handler, CURLOPT_PORT, $Port);
curl_setopt($Handler, CURLOPT_HEADER, 0);
curl_setopt($Handler, CURLOPT_RETURNTRANSFER, 1);
But the problem is USER_AGENT is not set!
Some external app(such as Kohana), use user agent to validate cookie!
So, you need to add
curl_setopt($Handler, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'])
to set user agent!
If you don't set, cookie will become invalid in external app, and of course, nothing return!
This thing should be add to next verison of proxy connect!
Comments
Thanks for the report!
Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
'User-Agent' => ArrayValue('HTTP_USER_AGENT', $_SERVER, 'Vanilla/2.0'),due to how fickle the $_SERVER array is, and that in the future it will be possible to call Vanilla from the command line. Anyways, 2.0.1 ;)Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
my proxyconnector still has some modifications, but looks like @tim's got a nice update 1.5 planned in the future.
i'm worried i might have trouble upgrading though, because one of my hacks made it so that my uniqueID was used instead of email for the foreignkey.
Vanilla Forums Senior Developer [GitHub, Twitter, About.me]