Continuing the discussion from Single-Sign-On help class for PHP:
I am working on syncing up my WordPress install with Discourse, and many thanks to @ArmedGuy for his PHP SSO help class and template which were invaluable in helping me piece this together.
This is a WordPress page template file, so you will want to store it in the root of your theme’s folder. Create a new page in WordPress (you will likely want to title it “SSO”) and select “Discourse SSO” as the page template. Also be sure to customize the $sso_secret
and $discourse_url
.
You will need to include ArmedGuy’s help class in some manner too and configure Discourse settings as described here.