Open published feeds with REMOTE AUTH

Request new functionality here
User avatar
limako
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 09 Nov 2011, 18:31
Contact:

Open published feeds with REMOTE AUTH

Postby limako » 10 Nov 2011, 21:07

I've set up tt-rss with REMOTE AUTH to use ldap, which works great -- and I appreciate the added security that non-authenticators can't poke at the system. But it means that I can't offer a public feed of my published articles, because only people with an account can see inside the tt-rss directory to run the script.

I'm thinking that a solution would be to build a special-purpose script that would only provide public access to published feeds and put it outside the tt-rss directory. Before I build that, I was wondering if anyone else had already thought about the problem and/or constructed a solution.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Open published feeds with REMOTE AUTH

Postby fox » 11 Nov 2011, 00:08

Maybe it's possible to exclude URL masks from authentication? E.g. backend.php?op=feed&etc?

User avatar
limako
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 09 Nov 2011, 18:31
Contact:

Re: Open published feeds with REMOTE AUTH

Postby limako » 14 Nov 2011, 21:18

I have implemented my plan, which seems to have worked OK. I created a parallel directory at the same level at tt-rss called "publicfeeds" and made symlinks to cache, db-prefs.php, db.php, functions.php, icons, and templates. I copied config.php and backend.php (as index.php). I stripped down index.php, removing most of the code, so that it only did the op==rss part. Then I added a snippet to pref-feeds.php to build a public rss url and display a button for it next to the other one (which is now labeled "Secure").

It's a hack, but it seems to work OK and only took me about an hour.

I'm happy to provide the actual bits of code, if anyone wants them.

UPDATE: I also had to modify the SELF_URL_PATH in config.php (otherwise I could have used a symlink).
Last edited by limako on 14 Nov 2011, 21:58, edited 1 time in total.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Open published feeds with REMOTE AUTH

Postby fox » 14 Nov 2011, 21:35

Is this yours by any chance? http://tt-rss.org/redmine/issues/389

Just want to mention it here.

User avatar
limako
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 09 Nov 2011, 18:31
Contact:

Re: Open published feeds with REMOTE AUTH

Postby limako » 14 Nov 2011, 21:54

No -- that's not me and I hadn't seen that. Interesting. :-)


Return to “Feature requests”

Who is online

Users browsing this forum: No registered users and 18 guests