> > How can I create passwords protected feeds with Django? I guess I > > will have to go beyond the contrib.feeds framework, but if some one > > has any recipes/links to how to do this, it would be most helpful! > > Use your own custom view to render the feed, and just wrap HTTP auth > around it. There are some snippets around implementing it, for example: > > http://www.djangosnippets.org/snippets/243/
The other thing to consider is how an RSS reader hands off these credentials to the web-site. If the RSS is consumed within a browser via a JavaScript request to the page, then any authentication in cookies should be sent along; same with using HTTP Auth. However, if you're using any other type of reader, the reader needs to know how to speak your authentication. Using HTTP Auth is the most common method I've seen for this, so you'd access something like https://username:[EMAIL PROTECTED]/feed.rss There's some good examples here: http://labs.silverorange.com/archives/2003/july/privaterss of using HTTP Auth for feeds. Getting your garden-variety feed-readers to know what to do with cookies can be a more challenging experience. -tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---