@codinghorror @fefrei @AdamCapriola
Thank you all for your input, I have solved the problem
For those that may follow this thread, and are trying to connect discourse to a WP multisite here is what you shouldn’t and should do.
Don’t use WP Multisite SSO plugin, it breaks everything. Use WP Multisite User Management instead.
@AdamCapriola Sorry mate, I couldn’t get your plugin to work, probably my lack of coding experience, though.
What worked:
On the WP side: Use the WP Discourse plugin, Check the ‘Enable SSO to Discourse’, check that all user ID’s are the same across the network.
On Discourse side: Enable SSO, Enable SSO Provider, and set URL to yoursite.com (for some reason I overlooked this
), override e-mail, override username and set not approved url. Clear all caches and test incognito.
Voila, it works, or at least it did for me.