# SSO keeps redirecting suspended users

**URL:** <https://meta.discourse.org/t/sso-keeps-redirecting-suspended-users/72452>\
**Category:** Bug\
**Created:** [October 20, 2017, 8:45am UTC](https://meta.discourse.org/t/sso-keeps-redirecting-suspended-users/72452 "2017-10-20T08:45:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)\
**Post date:** [October 20, 2017, 8:45am UTC](https://meta.discourse.org/t/sso-keeps-redirecting-suspended-users/72452/1 "2017-10-20T08:45:26Z")

</div>

Hi,

Once a user suspended, the ideal scenario would be to redirect him to a page like “Your account is currently suspended until …”.

Currently, suspended users cause an infinite loop:

- Discourse redirects the user to the login page (normal).
- Then the Login page redirects the user to Discourse and normally he should see an error or our community main page..
- However if the user is suspended, then Discourse will redirect again the user to the login page.
- As the user is already logged in, he will be redirected to discourse

And so on… In the end, it goes back and forward from the login server to discourse until the browser decides to raise an exception (Too many redirections…).

Is there a way to work around this issue?

Thank you,  
Seb

---

_[View the full topic](https://meta.discourse.org/t/sso-keeps-redirecting-suspended-users/72452)._
