首页 > 解决方案 > rest wcf 中的匿名身份验证

问题描述

全部,

我正在使用 WCF Rest 服务,该服务在 Windows 身份验证中运行良好,但是当我使用匿名身份验证时,它会导致问题,非常感谢任何帮助或建议。

  1. 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>```

标签: restwcf

解决方案


推荐阅读