如何指定“领域”? dotnetopenauth lib 的参数

发布于 2024-10-08 23:05:47 字数 159 浏览 0 评论 0原文

我尝试在服务器上执行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东北女汉子 2024-10-15 23:05:47

你不能。至少不是通过 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文