# Rare SSO issue causing 500 error and no log entry

**URL:** <https://meta.discourse.org/t/rare-sso-issue-causing-500-error-and-no-log-entry/54151>\
**Category:** SSO\
**Created:** [13.Декабрь.2016 00:10:20 UTC](https://meta.discourse.org/t/rare-sso-issue-causing-500-error-and-no-log-entry/54151 "2016-12-13T00:10:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jesse\_Houston](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@Jesse\_Houston](https://meta.discourse.org/u/Jesse_Houston)\
**Post date:** [13.Декабрь.2016 00:10:20 UTC](https://meta.discourse.org/t/rare-sso-issue-causing-500-error-and-no-log-entry/54151/1 "2016-12-13T00:10:20Z")

</div>

Hey there,

We have a rare bug (~5% of users) in our [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) implementation where the user authenticates against our backend, then is sent back to Discourse with the SSO and Sig parameters, but are returned the error message:

` "There was a problem with you account. Please contact the site's administrator."`

The user will be stuck in this message and be unable to continue, even on different browsers or devices. The following is then logged to the /var/discourse/shared/standalone/log/rails/production.log:

```
9638907- Parameters: {"sso"=>"bm9uY2U9NDU2ZWMwNzhmNzdjZDI5NDIzMTA0NGZkZmU3MDlmNzkmZW1haWw9c2lsdmVydHJpczc5JTQwZ21haWwuY29tJmV4dGVybmFsX2lkPUE1OURCMjQ4ODIyNkM5RjYmdXNlcm5hbWU9U2lsdnJpcw==", "sig"=>"4ea1a0b741fe761e77cac5e0ce8c0385ae6c4b7b72fd37db298e64da82c8b180"}
9639164- Rendered text template (0.0ms)
9639197:Completed 500 Internal Server Error in 51ms (Views: 0.9ms | ActiveRecord: 26.3ms)

```

Nothing is then logged to /var/discourse/shared/standalone/log/rails/production\_errors.log or [https://discourse.example.com/logs](https://discourse.example.com/logs)

We found a rather odd workaround. If we reset the user’s password in our backend, then log in on our computers, then set the password back to the original password, the users are then able to log in. /shrug

Any help would be greatly appreciated!

---

_[View the full topic](https://meta.discourse.org/t/rare-sso-issue-causing-500-error-and-no-log-entry/54151)._
