# שגיאת ArgumentError ב-DiscourseSsoController#sso, מספר שגוי של ארגומנטים (ניתן 1, צפוי 0)

**URL:** <https://meta.discourse.org/t/error-argumenterror-in-discoursessocontroller-sso-wrong-number-of-arguments-given-1-expected-0/184274>\
**Category:** SSO\
**Created:** [24 במרץ,‏ 2021,‏ 9:36am UTC](https://meta.discourse.org/t/error-argumenterror-in-discoursessocontroller-sso-wrong-number-of-arguments-given-1-expected-0/184274 "2021-03-24T09:36:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [24 במרץ,‏ 2021,‏ 9:55am UTC](https://meta.discourse.org/t/error-argumenterror-in-discoursessocontroller-sso-wrong-number-of-arguments-given-1-expected-0/184274/2 "2021-03-24T09:55:52Z")

</div>

Looking at the screenshot, that error appears to be coming from your custom rails app, rather than Discourse. Is that correct? I don’t think Discourse has a `DiscourseSsoController#sso` method, and the backtrace doesn’t look like Discourse either.

How have you implemented that method in your rails app? Have you imported some parts of the code from Discourse’s codebase? If so, your imports might be affected by this change: [SECURITY: Attach DiscourseConnect (SSO) nonce to current session (#12… · discourse/discourse@13d2a1f · GitHub](https://github.com/discourse/discourse/commit/13d2a1f82c25e16f96ac3bdad67f4369e3d43a61#diff-91c0e802001330ccbdee18eeee6f7161d6eb8751299520fb03a4c74a3aa39fef)

---

_[View the full topic](https://meta.discourse.org/t/error-argumenterror-in-discoursessocontroller-sso-wrong-number-of-arguments-given-1-expected-0/184274)._
