Automatically connect user in discourse with user connected on wp


I uses WPdiscourse and it’s working fine but in the case of the user connected first on WP when he arrives on discourse he has to click on connexion button.

So I want to know how connected directly the user when he arrives on discourse from my wp.

Thanks for your help

When the SSO Provider option is enabled, user should be logged into Discourse when they click the Start Discussion, or Continue Discussion link at the bottom of a post. If this isn’t working for you, let me know.

If you are not displaying comments on WordPress, or would like users to be logged into Discourse from links other than the comment links, you need to manually create a link in this form:

<a href="">Link Text</a>

This will cause Discourse to login the user and redirect them to the value set in the return_path parameter. You can set the return path to / to redirect users to your homepage.