# SSO don't return to return\_url after new user creation

**URL:** https://meta.discourse.org/t/sso-dont-return-to-return-url-after-new-user-creation/79492
**Category:** SSO
**Created:** [1월 31, 2018, 9:29오후 UTC](https://meta.discourse.org/t/sso-dont-return-to-return-url-after-new-user-creation/79492 "2018-01-31T21:29:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![xagaba](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xagaba/32/88754_2.png) [@xagaba](https://meta.discourse.org/u/xagaba)
#### Post date: [1월 31, 2018, 9:29오후 UTC](https://meta.discourse.org/t/sso-dont-return-to-return-url-after-new-user-creation/79492/1 "2018-01-31T21:29:51Z")

</div>

I have a website that uses Discourse as a SSO provider.

I have a login button in my site that redirects to [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) with the return\_url set,  
if and existing user logined correctly, Discourse honors my return\_url and returns to my website after validate the user.  
But if it’s a new user that needs to Sign-up first, after creating the user and validating  
his email address, the Discourse forum send the user to the forum instead of my site.  
Any one know if this is possible to tell Discourse return to my web site after new user creation ?

---

<div class="post-metadata">

### Author: ![davedogs](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@davedogs](https://meta.discourse.org/u/davedogs)
#### Post date: [2월 27, 2018, 9:51오후 UTC](https://meta.discourse.org/t/sso-dont-return-to-return-url-after-new-user-creation/79492/2 "2018-02-27T21:51:44Z")

</div>

I have the same issue. Searching for a solution right now.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [5월 13, 2018, 3:14오후 UTC](https://meta.discourse.org/t/sso-dont-return-to-return-url-after-new-user-creation/79492/3 "2018-05-13T15:14:58Z")

</div>

This has now been fixed for local logins

[https://github.com/discourse/discourse/commit/09cf35c7600165a1b89b84cd2d3cf9723811bc05](https://github.com/discourse/discourse/commit/09cf35c7600165a1b89b84cd2d3cf9723811bc05)

and for social logins

[https://github.com/discourse/discourse/commit/be6404d6519d03cfb9194bc03e5c6b9593513c1d](https://github.com/discourse/discourse/commit/be6404d6519d03cfb9194bc03e5c6b9593513c1d)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [5월 14, 2018, 4:00오후 UTC](https://meta.discourse.org/t/sso-dont-return-to-return-url-after-new-user-creation/79492/4 "2018-05-14T16:00:07Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
