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.

Vanilla ProxyConnect

12346»

Comments

  • TimTim Vanilla Staff
    I have uploaded a new version of the plugin, 1.4

    Changes have been made in the main source code to support some modifications I did, which unfortunately breaks compatibility with RC3 :( You can still download the very latest code from http://www.vanillaforums.org/download/nightly

    Changes / Fixes in 1.4

    - I sometimes have to push the sign-in button (without having to enter the credentials) before vanilla seems to recognize the cookie information

    This has been largely mitigated by a change to the way the signin process works for SSO. Instead of going directly to the target URL of your remote site, I now send the user to another page in vanilla which does some checks, and can unset that throttle cookie before forwarding the user to the real login URL. Long story short, this button works much better now.

    - upon login / logout, users are always redirected to their WP profile-page (WP 3.0) while they should be redirected to vanilla / discussions

    This has been fixed.

    - WP nag-screen when logging out from vanilla's page ('You are about to log-out...')

    This has been fixed.

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

  • Ok but my sso-signout.php doesn't echo any HTML, it just removes cookies and redirect to the forum homepage. The default browser's behavior is to load a /favicon.ico URL...

    To make it working with vanilla structure I have to display a empty HTML page with that in the :


    Maybe a tip in the SSO doc could help other ?
  • TimTim Vanilla Staff
    Maybe.

    What are you using sso-signout.php for?

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

  • My sso-signout.php just logout from the forum by deleting the cookie. But if I wanted, I could also logout from my global SSO based on CAS JASIG software.

    I have another request/question about signin redirect. I would like my sso-signin.php script ("Sign-In URL") to redirect to the correct requested page after login. I was not able to do it without this small patch: http://pastebin.com/w1wnuMsa
    Is there a more clean way to handle correct redirection from SSO scripts ?
  • Unfortunately, still no luck with v1.4. Redirects are all fine, but somehow vanilla does not seem to regognize the cookie. When the plugin is enabled, I can neither sync my accounts, nor sign in to vanilla anymore.
  • @Tim
    I wrote a small tutorial on how to integrate Vanilla2 with ProxyConnect and CAS (SSO I'm using)
    http://www.zeitoun.net/articles/cas-jasig-integration-with-sso-proxyconnect-vanilla2-plugin/start
  • TimTim Vanilla Staff
    @binhdo I would be interested in working with you to see what pitfalls and problems you've encountered so that I can improve the addon or the documentation. Would you be able to add me on google talk or skype and walk me through your install?

    @kerphi Looks good! Thanks!

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

  • @Tim Thanks for your offer, would be a pleased to help. As I'm not using skype, maybe google talk would be an option.
    Though I have to says there's nothing special about my setup:
    - XAMPP 1.73 on Win7x64
    - Wordpress 3.0 installed in a subdirectory (URL http://my-machine/dbtest/ )
    - Vanilla 2 pulled from the RC-branch on github (URL http://my-machine/dbtest/community/ )
    - both WP and vanilla have an admin account (ID and credentials are identical)
    - Cookie domain for both wp and vanilla is 'my-machine', cookie path is '/'
  • TimTim Vanilla Staff
    Try setting the cookie domain to '.my-machine'?
    Can you tell me what you AuthenticateURL is set to in your config?
    What about FSockOpen and CURL? Is at least 1 of those installed?

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

  • Did a quick reinstall and enabled the curl extension on my xampp as I was not sure about fsockOpen, seems like this finally did the trick! All of a sudden, the plugin seems to work as it is supposed to!
    Concerning the cookie domain, I guess simply leaving it blank is the best way to go with my setup; as soon as I enter a value (i.e. '.my-machine'), I'm unable to sign in anymore. Don't know whether it is still important, my AuthenticateURL is 'http://my-machine/dbtest/?VanillaChallengeKey=6rbatwfq2pjs80v0'.
    Anyway, thanks a lot for pointing out those PHP extensions as they seem to be really essential in order to make things work!
  • TimTim Vanilla Staff
    No problem. I think I will put a check into the plugin's setup method that will prevent it from being enabled if those extensions aren't loaded. Thanks for sticking it out.

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

  • Sometimes the solution can be as simple as removing a tiny semicolon from php.ini ...
  • I'm having a bit of trouble understanding the documentation... How do I set this up? I'm using the latest Vanilla 2 and the latest Wordpress.
  • I mean I have the plugin installed, I just don't know how to use it.
  • ...Nevermind. I got it working, but it doesn't log out of vanilla when I hit log out.
  • Also, I can't log back into wordpress.
  • @Tim, I got the connection to work between Vanilla and Wordpress, but I wasn't able to log back into either one after I removed all of my cookies. There weren't any error messages when trying to log back in, so I know that I was getting the credentials right.

    I'm guessing one of the scripts isn't setting a cookie... The only one I have after attempting to log in is 'wordpress_test_cookie'. Any ideas?
  • TimTim Vanilla Staff
    What codebase are you running, Ellie?

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

Sign In or Register to comment.