是否可以使用PHP在RSS源中使用身份验证?

时间:2021-08-23 00:58:59

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.

我正在尝试为Intranet文档管理系统开发一个feed,以便可以向员工通知新文档。我实际上已完成编码,但无法对用户进行身份验证。

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

此外,我没有成功地将新闻阅读器添加到新闻阅读器,但可以使用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.

由于我无法解释得非常好,我将具体到希望它能在OutLook RSS Feeds中运行。

Thanks

7 个解决方案

#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).

您可以尝试HTTP身份验证(基本或摘要)。

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.

Feed阅读器必须能够访问Feed的网址,因此,如果只有网络用户可以使用,则Google阅读器(例如)将无法解析该地址并找到该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.

有这么多的feed阅读器和身份验证技术是如此的突破,我认为传统的auth可能是一个阻塞问题。

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

这是一个内联网,对吗?你使用静态IP吗?

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.

也许有一个身份验证页面(他们使用公司凭据登录),从那时起他们就可以从该IP访问他们的RSS源。如果他们转移到另一个IP,他们只需要重新认证。

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

您甚至可以通过RSS源发送身份验证消息。

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

如果IP在很多地方移动,那么会很痛苦,但这是一个可能的选择。


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

如果做不到这一点,强制执行哪些读者。 NewsGator支持完全身份验证,因此肯定是最简单的方法。

#5


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

Outlook 2007以后可以订阅经过身份验证的订阅源作为解决方法。这不是理想的,但它是可能的。

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

在PHP端,您只需要使用一些基本的HTTP身份验证。

#6


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

为什么不为该特定用户创建身份验证令牌,以便令牌/源ID组合将授权用户?

#7


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

您还可以使用Web服务来执行REST / SOAP之类的操作。

#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).

您可以尝试HTTP身份验证(基本或摘要)。

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.

Feed阅读器必须能够访问Feed的网址,因此,如果只有网络用户可以使用,则Google阅读器(例如)将无法解析该地址并找到该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.

有这么多的feed阅读器和身份验证技术是如此的突破,我认为传统的auth可能是一个阻塞问题。

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

这是一个内联网,对吗?你使用静态IP吗?

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.

也许有一个身份验证页面(他们使用公司凭据登录),从那时起他们就可以从该IP访问他们的RSS源。如果他们转移到另一个IP,他们只需要重新认证。

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

您甚至可以通过RSS源发送身份验证消息。

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

如果IP在很多地方移动,那么会很痛苦,但这是一个可能的选择。


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

如果做不到这一点,强制执行哪些读者。 NewsGator支持完全身份验证,因此肯定是最简单的方法。

#5


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

Outlook 2007以后可以订阅经过身份验证的订阅源作为解决方法。这不是理想的,但它是可能的。

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

在PHP端,您只需要使用一些基本的HTTP身份验证。

#6


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

为什么不为该特定用户创建身份验证令牌,以便令牌/源ID组合将授权用户?

#7


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

您还可以使用Web服务来执行REST / SOAP之类的操作。