The user iamntz is experiencing issues with Single Sign-On (SSO) on a WordPress (WP) site posting to a Discourse forum. Despite no error messages when posting, the posts don’t appear on the forum, and Discourse logs show a “Can’t verify CSRF token authenticity” error.
_sigurdur suggests that the issue might be with API communication, prompting iamntz to check the API key, which reveals a trailing space causing the problem.
codinghorror recommends stripping extra spaces from API keys to prevent similar issues in the future, and iamntz offers to create a pull request to implement this fix. The pull request is later merged by benword.
Tried to regenerate api keys, but with no luck. Also i tried to make a request with Postman and I get the same errors on logs, but postman also shows me a 500 error (with no extra details).
Am I doing something wrong? Thanks!
(i’m on latest versions of wp, discourse, plugin, all).