# Conectar automáticamente al usuario en Discourse con el usuario conectado en WP

**URL:** https://meta.discourse.org/t/automatically-connect-user-in-discourse-with-user-connected-on-wp/109139
**Category:** WordPress
**Created:** [14 Febrero, 2019 11:52 UTC](https://meta.discourse.org/t/automatically-connect-user-in-discourse-with-user-connected-on-wp/109139 "2019-02-14T11:52:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Zaelech](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zaelech/32/99374_2.png) [@Zaelech](https://meta.discourse.org/u/Zaelech)
#### Post date: [14 Febrero, 2019 11:52 UTC](https://meta.discourse.org/t/automatically-connect-user-in-discourse-with-user-connected-on-wp/109139/1 "2019-02-14T11:52:54Z")

</div>

Hello,

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  
Eric

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [14 Febrero, 2019 20:21 UTC](https://meta.discourse.org/t/automatically-connect-user-in-discourse-with-user-connected-on-wp/109139/2 "2019-02-14T20:21:07Z")

</div>

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:

```plaintext
<a href="https://forum.example.com/session/sso?return_path=https://forum.example.com/your-discourse-endpoint">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.
