# SSO מותאם אישית לא עובד לאחר הוספת secure\_session כפרמטר

**URL:** <https://meta.discourse.org/t/custom-sso-not-working-after-secure-session-added-as-a-parameter/182655>\
**Category:** SSO\
**Created:** [9 במרץ,‏ 2021,‏ 5:20pm UTC](https://meta.discourse.org/t/custom-sso-not-working-after-secure-session-added-as-a-parameter/182655 "2021-03-09T17:20:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pmills](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmills/32/118431_2.png) [@pmills](https://meta.discourse.org/u/pmills)\
**Post date:** [12 במרץ,‏ 2021,‏ 12:01am UTC](https://meta.discourse.org/t/custom-sso-not-working-after-secure-session-added-as-a-parameter/182655/7 "2021-03-12T00:01:52Z")

</div>

After digging into the v2.7.0.beta4 code some more, I see that `ApplicationController` has a `secure_session` definition. Changing our plugin code to the following seems to work in our Staging environment:

```plaintext
sso = DiscourseSingleSignOn.parse({ sso: encoded_query, sig: sig }.to_query, secure_session: secure_session)

```

…Is it really that simple? 🤔

---

_[View the full topic](https://meta.discourse.org/t/custom-sso-not-working-after-secure-session-added-as-a-parameter/182655)._
