How to silently login to wordpress for comments?

We have discourse configured as SSO provider for wordpress, We’re looking forward for a way to automatically log in users who visit WordPress if they’re logged in to discourse.

Can it be done by the means of some specially crafted link or implementation of some configuration?

If you add a link like this to Discourse, users who click it will be logged in on your WordPress site. Set the redirect_to parameter to the page you want users to end up on:

<a href="http://wordpress.dev/?discourse_sso=1&redirect_to=http://wordpress.dev/">Link Text</a>
3 Likes