I’m currently using the Remote-User header to authenticate users (using auth_remote plugin), but my authentication mechanism supports logout via special URL. Would be nice if there was a way to specify a logout URL after TTRSS log out, otherwise the logout does nothing and it’ll log me back in again.
I hope this makes sense.
fox
2
this makes sense. i’ll make a note to take a look at this when i have some time.
Some extra information for the workflow…
When I just logged out the authentication which provides the Remote-User, I then login as a different user, TTRSS I’m still logged in as the old user. I have to go to 3 Bars menu then Logout, it then picks the Remote-User again, and logs me in as the correct user.
So the process would need to;
Logout of TTRSS, then redirect to specified authentication provider URL in my case it would be “https://rss.domain.com/akprox/sign_out”, to finish off the authentication logout.
fox
5
i’m probably going to add a post-logout hook which auth_remote is going to provide, if hook function returns an url, tt-rss would redirect to it, instead of login page. something like that.
fox
7
Can confirm this works nicely.
If anyone else gets this problem as well, if you do
TTRSS_AUTH_REMOTE_POST_LOGOUT_URL=/akprox/sign_out
instead of it fully qualified, it won’t work.
TTRSS_AUTH_REMOTE_POST_LOGOUT_URL=https://rss.domain.com/akprox/sign_out
So makes sure its fully qualified. 
fox
9
yeah, provided URLs are validated, so this is required. also, no custom ports, etc.