保护用户名和密码RSS提要,对于私人观看 [英] Securing the rss feed with username and password,for private viewing
本文介绍了保护用户名和密码RSS提要,对于私人观看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能确保为私人观赏RSS源?
How can i secure the Rss feed for private viewing?
推荐答案
如果您有控制器动作,并使用内置的授权,然后装饰与作用的结果[授权]
属性:
If you have controller action and use builtin authorization then decorate action result with [Authorize]
attribute:
[Authorize (Users="List of users", Roles="List of roles")]
RssActionResult RssFeed(params)
{
}
这篇关于保护用户名和密码RSS提要,对于私人观看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文