Is it possible to use authentication in RSS feeds using php?

瘦欲@ 提交于 2019-12-09 05:57:42

问题


I'm trying to develop a feed for an intranet document management system, so that staff can be notified of new documents. I have actually completed coding it, but there is no way to authenticate the user.

Also I'm not successful in adding the feed to news readers, but works with firefox Live Bookmark.

Any Ideas

Update:

Since I couldn't explain really well, I'll be specific I want it to work inside OutLook RSS Feeds.

Thanks


回答1:


Well it's not very common, but i read an article about it a while ago

http://labs.silverorange.com/archive/2003/july/privaterss

that might help you out




回答2:


You may try HTTP authentication (either basic or digest).

As for newsreaders, please clarify what are you doing and what's going wrong.




回答3:


The feed reader has to be able to access the URL of the feed, so if it is only available to people on your network, Google Reader (for example) won't be able to resolve the address and find the feed.




回答4:


There are so many feed readers and the authentication techniques are so hit-and-miss that I think traditional auth might be a blocking issue.

This is for an intranet, right? Do you use static IPs?

Perhaps having a authentication page (where they log in using their company credentials) and from then on they can access their RSS feed from that IP. If they move to another IP, they just need to re-auth.

You could even send the auth messages through the RSS feed.

Pain in the arse if the IPs move around lots, but a possible option.


Failing that, enforcing which readers can be used. NewsGator supports full authentication so would certainly be the simplest method.




回答5:


Outlook 2007 onwards can subscribe to authenticated feeds as a workaround. That's not ideal but it's possible.

At your PHP end, you just need to use some basic HTTP auth.




回答6:


Why not create an auth token for that particular user, so that the token/feed id combination will auth the user?




回答7:


You can also use Web Services to do that like REST/SOAP.



来源:https://stackoverflow.com/questions/920003/is-it-possible-to-use-authentication-in-rss-feeds-using-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!