Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Single Sign-On for Wordpress not working with Vanilla 2.0 rc1

2

Comments

  • @Tim

    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.
  • TimTim Vanilla Staff
    What are the values of Garden.Authenticator.EnabledSchemes and Garden.Authenticator.DefaultScheme?

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • @Tim

    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";}';
  • TimTim Vanilla Staff
    Garden.Cookie.Domain ?

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • @Tim

    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.
  • TimTim Vanilla Staff
    Sorry @michaelalfox

    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]

  • edited June 2010
    Ah, my bad. This is what I pulled out:

    $Configuration['Garden']['Cookie']['Domain'] = '';
  • @Tim

    Same here cookie domain is empty.
    I've got Vanilla installed in /forums subdirectory..
  • @Tim

    Same here cookie domain is empty.
    I've got Vanilla installed in /forums subdirectory..
  • TimTim Vanilla Staff
    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.
    :p

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • @Tim

    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?
  • @Tim

    Ok I've set wordpress to create cookies for .mydomain.com, no luck
    Vanilla is creating a Vanilla and Vanilla-Volatile cookie though.
  • TimTim Vanilla Staff
    Are both sets of cookies being created for ".mydomain.com" now? And did you clear your cookies after this change?

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • 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.
  • @Tim

    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.
  • TimTim Vanilla Staff
    edited July 2010
    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.

    image

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • good luck Tim :)
  • TimTim Vanilla Staff
    A new version of the plugin is uploaded.
    http://www.vanillaforums.org/addon/472

    Let me know if this works better.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • I have installed 1.3 without success.

    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
Sign In or Register to comment.