I threw up a fresh install of the latest RC2, installed the new SSO plugin on both ends and all that jazz, entered values, and started testing. I'm able to register through both WordPress and Vanilla 2 still. Instead of Vanilla 2 redirecting to the WP register/login, it does it's own thing.
I did notice that the cookie domain it has me enter into WordPress is different from before the update. Before it was 'mydomain.com' and now it's '.mydomain.com'. Not sure what that's about.
Check conf/config.php for something that looks like $Configuration['Garden']['Cookie']['Domain']. I don't need the other two values anymore I don't think.
Set that variable to the value provided by the ProxyConnect plugin in Vanilla. Should be that ".mydomain.com" value. The plugin *does* mention this in pretty good detail...
You will probably need to configure Vanilla and your remote application to use a shared Cookie Domain that they can both access. We've tried to guess what that might be, based on your hostname, but you'll need to check this and make sure that it works. This can be achieved on Vanilla by adding/modifying the $Configuration['Garden']['Cookie']['Domain'] setting in your conf/config.php file.
I tried that not working Although my wordpress install is on dev.mydomain.com so the wordpress cookies are generated for that domain, would that affect results?
Does not work on my local xampp, too. Cookie domain is left blank, wordpress creates the cookies on login and I almost manged to sync both admin-accounts. However, when I log off from vanilla, I'm still logged into wordpress and vice-versa. Neither do vanilla's sign-in/out / apply buttons redirect to the wp-links entered in the plugin settings.
I did entered '.mydomain.com' into the config file, cleared all my cookies, and yet the issue is the same. No redirect at all and you can be logged in in WP and V2 at the same time with different accounts.
I have the same problem I changed the config file, enabled both plugins, copies the URLs, cleared cache & cookies. The Sign In & Apply for a membership links don't redirect to WP and one can sign in with different accounts in WP and V2 at the same time.
Alright. I finally have some time to look at this and I found 3 or 4 bugs which I'm working on right now. They aren't too serious, so I'm hoping I can get a new version of ProxyConnect out this afternoon.
Wish me luck and success, and maybe even happiness.
Tim have you tried this on a clean install of either the rc2 or nightly update? There appear to be API omissions within CORE that prevent this plugin from working.
Comments
I threw up a fresh install of the latest RC2, installed the new SSO plugin on both ends and all that jazz, entered values, and started testing. I'm able to register through both WordPress and Vanilla 2 still. Instead of Vanilla 2 redirecting to the WP register/login, it does it's own thing.
I did notice that the cookie domain it has me enter into WordPress is different from before the update. Before it was 'mydomain.com' and now it's '.mydomain.com'. Not sure what that's about.
Vanilla Forums COO [GitHub, Twitter, About.me]
I'm having the same issue,
$Configuration['Garden']['Authenticator']['DefaultScheme'] = 'proxy';
$Configuration['Garden']['Authenticator']['EnabledSchemes'] = 'a:2:{i:0;s:8:"password";i:1;s:5:"proxy";}';
Vanilla Forums COO [GitHub, Twitter, About.me]
Not exactly sure which file I should be looking for those values in. From:
class.proxyconnect.plugin.php file
$EnabledSchemes = Gdn::Config('Garden.Authenticator.EnabledSchemes', array());
foreach ($EnabledSchemes as $SchemeIndex => $SchemeKey) {
if ($SchemeKey == 'proxy')
unset($EnabledSchemes[$SchemeIndex]);
$EnabledSchemes = Gdn::Config('Garden.Authenticator.EnabledSchemes', array());
$HaveProxy = FALSE;
foreach ($EnabledSchemes as $SchemeIndex => $SchemeKey) {
if ($SchemeKey == 'proxy') {
if ($HaveProxy === TRUE)
unset($EnabledSchemes[$SchemeIndex]);
$HaveProxy = TRUE;
SaveToConfig('Garden.Authenticator.DefaultScheme', 'proxy');
Really not sure if that's the kind of stuff you're looking for.
Check
conf/config.php
for something that looks like$Configuration['Garden']['Cookie']['Domain']
. I don't need the other two values anymore I don't think.Vanilla Forums COO [GitHub, Twitter, About.me]
$Configuration['Garden']['Cookie']['Domain'] = '';
Same here cookie domain is empty.
I've got Vanilla installed in /forums subdirectory..
Same here cookie domain is empty.
I've got Vanilla installed in /forums subdirectory..
Vanilla Forums COO [GitHub, Twitter, About.me]
I tried that not working
Although my wordpress install is on dev.mydomain.com so the wordpress cookies are generated for that domain, would that affect results?
Ok I've set wordpress to create cookies for .mydomain.com, no luck
Vanilla is creating a Vanilla and Vanilla-Volatile cookie though.
Vanilla Forums COO [GitHub, Twitter, About.me]
I did entered '.mydomain.com' into the config file, cleared all my cookies, and yet the issue is the same. No redirect at all and you can be logged in in WP and V2 at the same time with different accounts.
Wish me luck and success, and maybe even happiness.
Vanilla Forums COO [GitHub, Twitter, About.me]
http://www.vanillaforums.org/addon/472
Let me know if this works better.
Vanilla Forums COO [GitHub, Twitter, About.me]
Tim have you tried this on a clean install of either the rc2 or nightly update? There appear to be API omissions within CORE that prevent this plugin from working.
Reference: http://www.vanillaforums.org/discussion/11307/single-sign-on-rc2/#Item_1