密码保护网络服务

发布于 2024-08-28 22:57:22 字数 85 浏览 2 评论 0原文

是否可以在不更改现有 Web 服务代码的情况下要求 Web 服务的用户名和密码?

添加 DLL 和配置就可以了,但我不想更改 Web 服务。

Is it possible to require user name and password for a web service without changing the code for existing web service?

Adding a DLL and configuration would be OK, but I rather not change the web service.

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

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

发布评论

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

评论(2

南巷近海 2024-09-04 22:57:22

在 IIS 中使用(Windows - 集成 Windows),这是在不更改任何代码的情况下应用身份验证的唯一方法。本文还包含其他选项。

http://msdn.microsoft.com/en-us/library/w67h0dw7。 ASPX

Use (Windows - Integrated Windows) in IIS this is the only way to apply authentication without changing a single bit of code. Here is the article also contains other options as well.

http://msdn.microsoft.com/en-us/library/w67h0dw7.aspx

感性 2024-09-04 22:57:22

最简单的方法是让 IIS 保护 Web 服务所在的文件夹。无需更改代码。

Simplest way is to let IIS protect the folder where the web service resides. No code change required.

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