I’m using the WP Discourse plugin to connect my WordPress and Discourse sites, using Discourse as the SSO provider, I plan to disable WP login page and only rely on Discourse’s user authentication. Everything worked well except login status is not synced in WordPress. Either login or logout from Discourse, my login status in WordPress doesn’t change automatically, for log in, I have to click the Login with Discourse link (
https://example.com/?discourse_sso=1). Same thing for logout, have to use WP’s logout link.
Settings in WP Discourse plugin:
Set SSO Secret Key
Checked Enable SSO Client
Checked Add Login Link
Checked Sync Existing Users by Email
Settings in Discourse:
Checked enable sso provider
Set sso secret
WP version: 4.8.1
WP Discourse plugin version: 1.4.3
Discourse version: 1.9.0.beta5
Is this the expected behavior? If so, what’s the the best way to enable login status syncing?