# SSO login broken when following a shared link?

**URL:** <https://meta.discourse.org/t/sso-login-broken-when-following-a-shared-link/45134>\
**Category:** Product Support\
**Created:** [2016 年 6 月 2 日午後 1:16 UTC](https://meta.discourse.org/t/sso-login-broken-when-following-a-shared-link/45134 "2016-06-02T13:16:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Kevin\_McKinney](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kevin_mckinney/32/54497_2.png) [@Kevin\_McKinney](https://meta.discourse.org/u/Kevin_McKinney)\
**Post date:** [2016 年 6 月 2 日午後 1:16 UTC](https://meta.discourse.org/t/sso-login-broken-when-following-a-shared-link/45134/1 "2016-06-02T13:16:07Z")

</div>

I’ve set up SSO for my Discourse instance at my company, so that users can log in with Windows authentication against our internal Active Directory. This has worked fine so far.

What I noticed today is that when I email a link to people which is a shared link from a topic I created, there are problems logging in **if they followed that link.**

Here are some relevant pieces of info:

Root URL: `http://{computer_name}`  
Shared link: `http://{computer_name}/t/expand-code-n-lines/278?u=kmckinney`

When I click Login, my browser URL reflects this, but doesn’t log me in.

`http://{computer_name}/t/expand-code-n-lines/278?u=kmckinney/session/sso_login?sso={sso_payload}`

If I then go to the root URL for the site, I’m able to log in without a problem, and then I can follow the link and view the post as a logged in user.

Please let me know if there is more info that I should provide. Thanks!

---

_[View the full topic](https://meta.discourse.org/t/sso-login-broken-when-following-a-shared-link/45134)._
