IIS 应用程序池应用程序要求输入密码(基本身份验证),但邮递员或失眠都无法响应

IIS app pool application asks for password (basic auth) but neither postman or insomnia can respond

我们有一个 IIS 服务器 运行 一个 EPICOR ERP 系统。 ERP 系统安装 IIS 应用程序池,其中某些 url 被重新映射为由应用程序池处理。

这是关于验证的内容:

出于安全原因,您应该始终将 https 与 REST 一起使用 API

REST API supports 2 authentication methods Basic authentication The username and password are combined into a string separated by a colon and encoded using Base64. The result is placed into Authorization header: Authorization: Basic {encoded string} Token authentication The bearer token can be obtained for the user from token service. See https://epicorapp2/ERP10.1Test/TokenResource.svc/help (Token authentication should be enabled). Then access token should be send in the Authorization header in the following form: Authorization: Bearer {token string}

IIS 服务器本身对顶级 url 具有匿名身份验证(其他所有都关闭)。

我在Chrome去到想要的时候的经历URL:

https://epicorapp2/ERP10.1Test/api/help/

是一个弹出窗口询问username/password(其中user/passord是针对ERP系统,而不是针对主机IIS系统)。

但我无法用 Postman 或 Insomnia 复制这种体验 (我尝试在 Postman 和 Insomnia 的授权选项中输入 username/password。我收到 401 授权错误。

有什么想法吗?

从来没有让邮递员上班。但是只要我能够将 self-sign 证书更新为 DigiCert,Insomnia 就可以正常工作。