2
A
回答
3
对不起,我没看过这个问题不够仔细。不幸的是,我不相信你可以开箱即用。存在由OpenRasta提供一种HttpListenerHost
其中封装了System.Net.HttpListener实例作为私人变量。请参阅this forum thread中的代码,了解如何在控制台应用程序中使用HttpListenerHost
。如果HttpListener
变量是public
或至少protected
应该沿着这条代码的行设置AuthenticationSchemes
属性的一个简单的问题:
var host = new HttpListenerHost();
host.Listener.AuthenticationSchemes = AuthenticationSchemes.Ntlm;
如果你真的需要这个功能,你可以得到OpenRasta和源更新它以显示底层的HttpListener
变量,以便您可以将其配置为您的内容。
=================== >> 对于IIS原来的答案:如图
首先创建一个标准的WebForms或配置为OpenRasta MVC项目Getting Start wiki page.接下来,按照此Wrox article中所述配置项目以支持Windows身份验证。支持Windows身份验证将启用NTLM & Kerberos身份验证。
相关问题
- 1. 为OpenRasta POST操作
- 2. OpenRasta + OpenWrap?
- 3. OpenRasta通过JsonDataContractCodec
- 4. OpenRasta CreatedResourceUrl使用
- 5. OpenRasta AsJsonDataContract()字典
- 6. OpenRasta坏请求不会返回为JSON
- 7. 开始使用OpenRasta
- 8. OpenRasta路由限制
- 9. OpenRasta流式响应
- 10. OpenRasta IoC与Unity 2.0
- 11. OpenRasta上的.Net 2.0
- 12. 使用OpenRasta验证
- 13. OpenRasta Json返回嵌套类
- 14. OpenRasta依赖注入拆除
- 15. REST API与OpenRasta和ASP.NET MVC
- 16. 间歇使用StructureMap与OpenRasta
- 17. OpenRasta URI实现问题
- 18. OpenRasta的PKI身份验证
- 19. OpenRasta默认编解码器
- 20. OpenRasta使用Spark或Razor viewengine
- 21. OpenRasta访问子元素
- 22. Openrasta验证程序问题
- 23. 在openrasta中传递对象作为参数get方法
- 24. OpenRasta - 将错误编码为JSON而不是HTML
- 25. 使用OpenRasta HTTPEntity作为返回响应时获取406?
- 26. 使用OpenRasta作为流或字节数组获取图像
- 27. PUT/POST键/值集合到OpenRasta
- 28. Openrasta张贴到资源在基地uri
- 29. 自定义身份验证OpenRasta
- 30. 如何安装OpenRasta Visual Studio模板?
在IIS位,你怎么又检索安全上下文在你的应用程序,这将是可在ICommunicationContext?谢谢 – KlsLondon 2012-03-14 17:12:30
我想我可以在访问ICommunicationContext时指出正确的方向,但我现在没有时间查看它。这[博客文章(http://codebetter.com/sebastienlambla/2011/09/14/extending-configuration-in-openrasta-2-1/)表示ICommunicationContext可以在管道被访问的OpenRasta 2.1扩展点。 – 2012-03-14 17:50:55
谢谢Sixto,我知道如何获得ICommunicationContext,我的问题是,如果用户凭据可用,如果不是我怎么能得到它们? – KlsLondon 2012-03-14 18:25:43