# Fire SSO Login to discourse onLogIn on external site

**URL:** https://meta.discourse.org/t/fire-sso-login-to-discourse-onlogin-on-external-site/145222
**Category:** Support
**Created:** [March 23, 2020, 1:23pm UTC](https://meta.discourse.org/t/fire-sso-login-to-discourse-onlogin-on-external-site/145222 "2020-03-23T13:23:02Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [March 24, 2020, 4:30pm UTC](https://meta.discourse.org/t/fire-sso-login-to-discourse-onlogin-on-external-site/145222/4 "2020-03-24T16:30:31Z")

</div>

> [@bvdrie72](#):
>
> The pre-filled personal message works fine (as long as the user is logged in). I will have our dev look at using the `return_path`

I just re-read my previous reply. What I had meant to write was that the approach outlined in this topic should work: [Create an SSO login link](https://meta.discourse.org/t/create-an-sso-login-link/109290). This is how our WordPress plugin creates links that automatically log users into Discourse. What I haven’t tested is using this approach with a pre-filled message URL set for the `return_path`.

Let me know if that still isn’t clear.

---

_[View the full topic](https://meta.discourse.org/t/fire-sso-login-to-discourse-onlogin-on-external-site/145222)._
