Hi,
Here is the solution to the problems with ProxyConnect 1.8.4:
The bug causes the first 4 characters of the SSO response to be discarded. If your SSO response starts at the exact beginning of the http body, you'll have a problem.
File: /vanilla/library/core/functions.general.php
(Note this is part of Vanilla core, the ProxyConnect plugin uses it.)
Around line Line 1250 of Vanilla release 2.0.14
if (!$Success)
return $Response;
Change to:
if ($Success)
return $Response;
The reason this bug didn't affect everybody:
If your SSO response started later on in the http body, then the omission of the first 4 characters wouldn't affect you.
My thanks to the Vanilla sw developers for some great sw! I've just started using it and am very pleased with it.
Regards,
Larry
0 • •
Comments
Regards Susanne
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •when I log into my ADMIN account, vanilla just redirects me to it's /index.php,
so I guess this only works on the user side of things. ^_^
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •REPLACE the line in 1254 which is:
if (!$Success)
return $Response;
with this:
$Db = Gdn::Database();
/*
checks to see if the incoming email is an admin or not.
*/
$UserEmail = substr($Response,28,-49);
$DS = $Db->Query("select Admin from gdn_user where Email = '" . $UserEmail . "'")->Value('Admin');
if($DS['Admin'] == 1){
if (!$Success)
return $Response;
} else{
if ($Success)
return $Response;
}
Hope this helps. ^_^
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thank you! Greetings from Russia!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •"The "Gdn_PluginManager" object does not have a "xAvailablePluginFolders" method." LOCATION: / .... etc
:(
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •