Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Forum Module /

Discuss the Forum Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

RSS-Feed for forum within basic authentication security


Go to End


3 Posts   3746 Views

Avatar
WalterW

Community Member, 18 Posts

1 December 2009 at 1:11am

Is there some recipe how to implement a rss feed for a forum which is a subpage under a protected site (basic authentication).

This protected RSS is working with RSS-browsers (as Firefox, IE etc.), but users which use RSS-Readers have problems with the login, as they get no prompt

Regards
Walter

Avatar
dhensby

Community Member, 253 Posts

5 December 2009 at 2:22pm

Edited: 05/12/2009 2:25pm

Well, it sounds like you have the RSS feed 'protected' and requiring a log-in.

The problem is that the user will have to log-in and set a session with the site to get the authentication to look at the RSS. Obviously an RSS reader can't do that. So, really, you can't password protect it. What you could do is add a requirement for a random hash to be on the end of the RSS feed (http://example.com/protected/rss?hash=whatever) and then assign that hash to a user and then there is *some* sort of authentication there.

Otherwise you could look at implementing basic http authentication: http://user:password@example.com/protected/rss - http://php.net/manual/en/features.http-auth.php

Avatar
camfindlay

Forum Moderator, 267 Posts

30 May 2012 at 9:56am

Anyone ever solve this? I have a need to have internal only blogs and comments but would be good to be able to pull these to RSS feed readers using a hash/token per user setup.

What is the best way to overload the rss() method on the PageComment_Controller class in the CMS folder? Hopefully I don't have to hack the core.