Hey there, I see @simon proposed a fix to get Discourse and WP logins in sync, but it looks like the fix has been dropped because it wasn’t working.
And my discourse and WP are not in sync when I logout from either one of the installation.
So is this issue fixed and I missed something in the config or is it still an ongoing thing.
Thanks
Edit
Ok, I think I spoke too soon and need to be more specific on the issue.
I guess the synchronization is kinda of working, but not as I expect it.
If a user is logged in WP and then clicks on a discourse link, (from the main WP site) he won’t be automatically logged in. So I assume I have to force the current users credential in the URL to make sure he gets logged in on the discourse site. If so, how should I be doing this? Do I need to add a query string payload to each discourse links when a user is logged in (seems to be counter intuitive)? I need to point out that if I click on the discourse log in
button the credential are automatically passed on, so it’s not that annoying but still, not automatically synced. How can I support that?
I a user logs out of discourse, he is not automatically logged out of WP. This should be synced to WP IMO. Is this currently supported?
This just happened, so it might not be related to the current issue. If I log in from WP and then try to access discourse… It seems I get a server error
500 Internal Server Error
If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong.
the logs
Started GET "/" for xxx.xxx.xxx.xxx at 2017-03-09 19:57:06 +0000
ActionController::RoutingError (No route matches [GET] "/")
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
Processing by ExceptionsController#not_found as HTML
Rendered exceptions/not_found.html.erb within layouts/application (4.8ms)
Completed 500 Internal Server Error in 43ms (ActiveRecord: 12.4ms)
The server recovered in about 1-2 minutes.