如何指定“领域”? dotnetopenauth lib 的参数
我尝试在服务器上执行 OAuth(版本 1.0)请求授权,并为此使用 DotNetOpenAuth 库。服务器在通过授权 HTTP 标头获取授权参数和需要请求参数“realm”时遇到一些问题。我不知道如何在 DotNetOpenAuth 库中指定它。任何帮助将非常感激!
问候, 亚历克斯
I try to do OAuth (version 1.0) request authorization on the server and using DotNetOpenAuth library for this. The server has some troubles with getting authorization parameters through the Authorization HTTP header and request parameter "realm" to be required. I have no idea how to specify it in DotNetOpenAuth library. Any help will be very much appreciated!
regards,
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不能。至少不是通过 DotNetOpenAuth 发行版本中包含的公共 API。请跳转到 http://dotnetopenauth.uservoice.com/ 并提交详细说明您需要的功能请求。
有用的详细信息可能包括您是否需要为所有请求使用相同的领域参数值,还是需要为单个请求自定义它。
You can't. At least not through the public API included in the shipping version of DotNetOpenAuth. Please jump over to http://dotnetopenauth.uservoice.com/ and submit a feature request detailing what you need.
Useful details might include whether you need the same value for the realm parameter for all your requests, vs. needing to customize it for individual requests.