Error after SSO logout


(Lutz Biermann) #1

If I do a logout I get the following Error:

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.


(Rafael dos Santos Silva) #2

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


(Lutz Biermann) #3

That solved it, thank you very mutch!


(Sam Saffron) #4

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?


(Rafael dos Santos Silva) #5

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.


(Sam Saffron) #6

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


(Lutz Biermann) #7

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.