ASP.NET 应用程序中的混合身份验证

发布于 2024-09-27 08:57:11 字数 343 浏览 1 评论 0原文

我有一个使用表单身份验证的 ASP.NET 应用程序。

我们添加了一个 HttpModule,用于响应 /webdav 文件夹及以下文件夹中的请求。我们需要对这些请求使用基本/摘要身份验证。

将根 web.config 中的 设置为 Forms 后,来自 webdav 客户端的请求将收到 302,将用户重定向回登录页面。

MADAM 是实现此目标的最佳方法吗?

I've got an ASP.NET application which uses forms authentication.

We're adding on an HttpModule that responds to requests in the /webdav folder and below. We need to use basic/digest authentication for these requests.

With <authentication> set to Forms in the root web.config, requests from webdav clients are receiving a 302 redirecting the user back to the login page.

Is MADAM the best way to achieve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

深居我梦 2024-10-04 08:57:11

我认为 MADAM 很适合你。

我正在使用 MADAM 来提供特定于 RSS 阅读器可访问的登录用户的 RSS 提要。我还计划在我们的应用程序中实现移动应用程序访问时使用它。这样我们就可以使用相同的控制器逻辑并使用 MADAM 更改身份验证。

如果您正在进行 BASIC 身份验证,我建议您使用 HTTPS 请求。另外,如果您使用的是 IIS 7,请确保将 http 模块配置添加到 system.webServer/modules 部分。我没有太注意并浪费时间来诊断为什么它在本地工作而不是在 IIS 7 中的开发服务器上工作。

I think MADAM would work well for you.

I'm using MADAM to make RSS feeds available that are specific to logged in users accessible to RSS Readers. I am also planning on using it when we implement mobile app access into our application. That way we can use the same controller logic and change the authentication using MADAM.

I would suggest that you use HTTPS requests if you're doing BASIC authentication. Also, if you are using IIS 7, make sure you add the http modules configuration into the system.webServer/modules section. I wasn't paying much attention and wasted time diagnosing why it was working locally and not on the development server in IIS 7.

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