# Error after SSO logout

**URL:** https://meta.discourse.org/t/error-after-sso-logout/54676
**Category:** Support
**Created:** [22 Dicembre 2016, 10:37pm UTC](https://meta.discourse.org/t/error-after-sso-logout/54676 "2016-12-22T22:37:33Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Lutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lutz/32/65103_2.png) [@Lutz](https://meta.discourse.org/u/Lutz)
#### Post date: [22 Dicembre 2016, 10:37pm UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/1 "2016-12-22T22:37:33Z")

</div>

If I do a logout I get the following Error:

 ![](https://global.discourse-cdn.com/meta/original/3X/3/9/3924c8f02663bd315078a80f61fad09d76d7817b.png)

If I click on the link its says:  
“{“errors”:[“Dazu musst du angemeldet sein.”],“error\_type”:“not\_logged\_in”}”

(translation;: You have to be logged in.)

Oh and Unread is the default View for the forum. If I change it back, it works.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [22 Dicembre 2016, 10:40pm UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/2 "2016-12-22T22:40:09Z")

</div>

Did you try setting `logout redirect` somewhere safe like the forum root ?

---

<div class="post-metadata">

### Author: ![Lutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lutz/32/65103_2.png) [@Lutz](https://meta.discourse.org/u/Lutz)
#### Post date: [22 Dicembre 2016, 10:42pm UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/3 "2016-12-22T22:42:08Z")

</div>

That solved it, thank you very mutch!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23 Dicembre 2016, 1:14am UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/4 "2016-12-23T01:14:21Z")

</div>

I am confused, I just tried:

1. visiting unread on `try.discourse.org`
2. logging out
3. I was redirected to root.

Is the issue here that you set an invalid logout redirect?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [23 Dicembre 2016, 2:25am UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/5 "2016-12-23T02:25:14Z")

</div>

> [@sam](#):
>
> Is the issue here that you set an invalid logout redirect?

Sam, set **Unread** to the default forum view and logout. It breaks, probably because there is no unread for anon. I can take a look at it.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23 Dicembre 2016, 2:39am UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/6 "2016-12-23T02:39:46Z")

</div>

> [@Falco](#):
>
> set Unread to the default forum view

well, don’t do that… that is not really a supported configuration, would only be sort-of-supported on “Requires login” forums.

---

<div class="post-metadata">

### Author: ![Lutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lutz/32/65103_2.png) [@Lutz](https://meta.discourse.org/u/Lutz)
#### Post date: [23 Dicembre 2016, 4:48am UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/7 "2016-12-23T04:48:14Z")

</div>

I set the logout redirect to forum/latest there is no error. Error comes back, if you are going to visit the forum without being logged in. After thinking about it, I changed the default view back to latest. Otherwise no guests could read the forum.

I still have no real insight (working on it) - but maybe it is possible to add a warning text at the admin panel not to put unread first. Or maybe its is even possible to do an redirect from unread to latest or the second configured view, if you are not logged in? It’s not urgent at all since there is a workaround for it.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [12 Aprile 2019, 1:38am UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/8 "2019-04-12T01:38:47Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [12 Aprile 2019, 6:27am UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/9 "2019-04-12T06:27:50Z")

</div>

I believe we added validation to ensure unread is never first in the menu. Plus users can pick a different home page if they wish today.

How is stuff going?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [22 Luglio 2022, 8:47am UTC](https://meta.discourse.org/t/error-after-sso-logout/54676/11 "2022-07-22T08:47:06Z")

</div>


