# Triggering automatic authentication via SSO when linking to private topics?

**URL:** <https://meta.discourse.org/t/triggering-automatic-authentication-via-sso-when-linking-to-private-topics/106913>\
**Category:** SSO\
**Created:** [January 18, 2019, 3:00pm UTC](https://meta.discourse.org/t/triggering-automatic-authentication-via-sso-when-linking-to-private-topics/106913 "2019-01-18T15:00:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 18, 2019, 7:55pm UTC](https://meta.discourse.org/t/triggering-automatic-authentication-via-sso-when-linking-to-private-topics/106913/2 "2019-01-18T19:55:48Z")

</div>

You can create an login link on your SSO provider site with a `return_path` parameter in the URL. After authentication, Discourse will redirect the user to the value set for the `return_path`. The link should be in this form:

```plaintext
<a href="https://forum.example.com/session/sso?return_path=https://forum.example.com/your-discourse-endpoint">Link Text</a>

```

---

_[View the full topic](https://meta.discourse.org/t/triggering-automatic-authentication-via-sso-when-linking-to-private-topics/106913)._
