# With SSO my user still need to hit the login button

**URL:** <https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905>\
**Category:** SSO\
**Created:** [2016年三月11日 13:14 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905 "2016-03-11T13:14:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stackfish](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stackfish/32/38440_2.png) [@Stackfish](https://meta.discourse.org/u/Stackfish)\
**Post date:** [2016年三月11日 13:14 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905/1 "2016-03-11T13:14:21Z")

</div>

I’ve implemented SSO for my discourse instance but I have one little glitch I’d like to resolve.

If a user is logged on my main site and thet click on a link to my discourse site, they are presented with the Login button. Once the hit the login button, they are then logged in without any further actions (entering password, etc).

Does anyone know how to configure the sites so my user’s will not have to hit the Login button when they go to our discourse site?

Thanks

---

<div class="post-metadata">

**Author:** ![dansingerman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dansingerman/32/115687_2.png) [@dansingerman](https://meta.discourse.org/u/dansingerman)\
**Post date:** [2016年三月11日 13:21 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905/2 "2016-03-11T13:21:40Z")

</div>

We resolved this by using links of this format

`https://our.discourse.server/session/sso?return_path=/where_we_want_to_link_to`

---

<div class="post-metadata">

**Author:** ![Stackfish](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stackfish/32/38440_2.png) [@Stackfish](https://meta.discourse.org/u/Stackfish)\
**Post date:** [2016年三月11日 13:37 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905/3 "2016-03-11T13:37:56Z")

</div>

Thanks for the tip!

Is where\_we\_want\_to\_link\_to the url back to your main site?

---

<div class="post-metadata">

**Author:** ![Stackfish](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stackfish/32/38440_2.png) [@Stackfish](https://meta.discourse.org/u/Stackfish)\
**Post date:** [2016年三月11日 13:48 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905/4 "2016-03-11T13:48:44Z")

</div>

Got it

`http://forums.stackfish.com/session/sso`

Resolved the issue. Thanks!

---

<div class="post-metadata">

**Author:** ![Clayton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Clayton](https://meta.discourse.org/u/Clayton)\
**Post date:** [2017年八月2日 03:59 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905/6 "2017-08-02T03:59:41Z")

</div>

Hi,

we have a similar issue, can you please help with exactly where to set return\_path

our sso url is `https://bodywizards.gopaywall.com/discoursesso.php`

Thanks.

---

<div class="post-metadata">

**Author:** ![Stackfish](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stackfish/32/38440_2.png) [@Stackfish](https://meta.discourse.org/u/Stackfish)\
**Post date:** [2017年八月2日 11:04 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905/7 "2017-08-02T11:04:09Z")

</div>

Hey Clayton,

I followed the instructions here: [Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045)  
for setting the return path.

Jim

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2019年七月19日 02:06 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905/8 "2019-07-19T02:06:37Z")

</div>



---

<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:** [2019年七月19日 02:44 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905/9 "2019-07-19T02:44:55Z")

</div>

> [@Stackfish](#):
>
> 有人知道如何配置站点，以便用户访问我们的 Discourse 站点时无需点击“登录”按钮吗？

[Create a DiscourseConnect login link](https://meta.discourse.org/t/create-an-sso-login-link/109290) 提供了创建链接的说明，该链接可让用户从 SSO 提供商站点自动登录到 Discourse。

---

<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:** [2019年七月19日 02:44 UTC](https://meta.discourse.org/t/with-sso-my-user-still-need-to-hit-the-login-button/40905/10 "2019-07-19T02:44:59Z")

</div>


