Introduction
I’m pleased to announce my first ExpressionEngine add-on in the form an EE 1 or 2 to Vanilla Forums 2 bridge / single sign on extension.
I don’t have a clever name for it but I don’t expect any use. I guess I’ll think about that when I work on it some more.
Instructions
You’ll need an install of Vanilla Forums 2 with the SSO plugin before we go any further. On the SSO settings page fill in the text fields so it looks similar:
# Authenticate Url
http://example.com/ee/index.php/sso/vanilla
# Registration Url
http://example.com/ee/index.php/member/register
# Sign-in Url
http://example.com/ee/index.php/member/login
# Sign-out Url
http://example.com/ee/index.php?ACT=10 (EE1) or http://example.com/ee2/index.php?ACT=12 (EE2)
In the Vanilla Forums config.php make sure the following cookie name is set:
$Configuration['Garden']['Cookie']['Name'] = 'exp_vanilla';
Now you’ve (hopefully) got that sorted move the “vanilla” extension folder into your “/system/expressionengine/third_party/” folder. You can enable that in the control panel now.
Create a template matching the one used for “Authenticate Url” with the following inside:
{if logged_in}
UniqueID={member_id}
Name={username}
Email={email}
{/if}
Extra
You will almost certainly want to have your EE admin account act as the Vanilla admin so you will need to make sure that in the Vanilla DB there is a row in “GDN_UserAuthentication” that matches up your admin accounts (usually both have the ID of 1).
Finally
Clear all of your cookies and I think that should be it. You can now log in to you Vanilla installation using EE. I’m sorry it’s not easier but I don’t think I could make the EE side any easier.
There is basically nothing in the extension file and It’s all down to the clever folks over at Vanilla.
