# Secure RSS

**URL:** <https://www.ruby-forum.com/t/secure-rss/114559>\
**Category:** Rails\
**Created:** [September 15, 2007, 11:03am UTC](https://www.ruby-forum.com/t/secure-rss/114559 "2007-09-15T11:03:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dipeshbatheja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@dipeshbatheja](https://www.ruby-forum.com/u/dipeshbatheja)\
**Post date:** [September 15, 2007, 11:03am UTC](https://www.ruby-forum.com/t/secure-rss/114559/1 "2007-09-15T11:03:22Z")

</div>

Hi I am trying to create a RSS feed in rails which requires  
authentication. Can somebody point me on how to add authentication to  
RSS feeds.

Thanks

---

<div class="post-metadata">

**Author:** ![dipeshbatheja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@dipeshbatheja](https://www.ruby-forum.com/u/dipeshbatheja)\
**Post date:** [September 17, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/secure-rss/114559/2 "2007-09-17T13:23:49Z")

</div>

The restful authentication plugin can use standard HTTP auth when the  
client is requesting XML, as will be the case when someone is hitting  
an RSS feed. So, simply using that plugin, with the :login\_required  
before filter in place for your feed action, will cause the  
authentication challenge to happen when a feed reader attempts to  
load the feed.

–  
Benjamin C.  
Founder, Catch the Best  
[http://catchthebest.com/](http://catchthebest.com/)  
[http://www.bencurtis.com/](http://www.bencurtis.com/) – personal blog
