SSO: Unable to logout

It looks like you have everything configured correctly. Is this a regular WordPress site, or is it a part of a multisite setup? There may be an issue syncing logout with sites other than the main site on the network.

From looking at your screen recording, it seems that your Discourse site is set to login required. What is happening is that Discourse is redirecting you to your WordPress site with an SSO request, and then automatically logging you in because you’re still logged into WordPress. The expected behaviour is that you will end up on your WordPress login page as a logged out user.

Syncing logouts with Discourse depends on the WordPress clear_auth_cookie hook. Possibly another plugin on your site is interfering with this.