Custom Logout url when using auth_remote

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.

this makes sense. i’ll make a note to take a look at this when i have some time.

Hi Fox,

Sounds good :slight_smile:

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.

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.

That sounds perfect!

https://git.tt-rss.org/fox/tt-rss/commit/53061d150814cf5939d1d4dc165d8270ca764109

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. :slight_smile:

yeah, provided URLs are validated, so this is required. also, no custom ports, etc.