rest - rest wcf 中的匿名身份验证
问题描述
全部,
我正在使用 WCF Rest 服务,该服务在 Windows 身份验证中运行良好,但是当我使用匿名身份验证时,它会导致问题,非常感谢任何帮助或建议。
- App.Config 与 Windows 身份验证(其工作正常):
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" proxyCredentialType="Windows" realm=""/>
</security>
</binding> ```
2. App.Config with anonymous authentication(its causing issue)
``` <binding name="DefaultRestBinding" closeTimeout="10:01:00" openTimeout="10:01:00" receiveTimeout="10:10:00" sendTimeout="10:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
</security>
</binding>```
解决方案
推荐阅读
- docker - 如何在 docker image johnnypark/kafka-zookeeper 中设置 auto.create.topics.enable=true 以便自动创建新主题?
- reactjs - react-pdf 在使用 firebase 存储时给出 CORS 错误
- python - 从 excel 文件创建数据框
- linux - ALSA 有时在重新启动后不起作用(大约 30 个中的 1 个)
- python - SMTP 出站:欺骗 ipv4 接收者来自
- angular - Angular 11 不会将文件上传到 .NET 5
- model-view-controller - MVC MapRoute 可选参数与默认值一样使用
- python - 如何使 y 轴上的数字显示以百万为单位的值,而不是 matplotlib 中的科学计数法?
- rust - 跟踪工厂及其产品之间所有权的惯用方式是什么?
- ubuntu - Ubuntu 为未连接的 WiFi 适配器应用网络计划