다음을 통해 공유


<basicHttpBinding>의 <transport>

HTTP 전송의 인증 매개 변수를 제어하는 속성을 정의합니다.

<configuration>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding>
          <security>
            <전송>

구문

<basicHttpBinding>
  <binding>
    <security mode="None|Transport|Message|TransportWithMessageCredential|TransportCredentialOnly">
      <transport clientCredentialType="None|Basic|Digest|Ntlm|Windows"
                 proxyCredentialType="None|Basic|Digest|Ntlm|Windows"
                 realm="String">
        <extendedProtectionPolicy policyEnforcement="Never|WhenSupported|Always"
                                  protectionScenario="TransportSelected|TrustedProxy">
          <customServiceNames>
          </customServiceNames>
        </extendedProtectionPolicy>
      </transport>
    </security>
  </binding>
</basicHttpBinding>

특성 및 요소

다음 섹션에서는 특성, 자식 요소 및 부모 요소에 대해 설명합니다.

특성

attribute Description
clientCredentialType - HTTP 인증을 사용하여 클라이언트 인증을 수행할 때 사용할 자격 증명의 형식을 지정합니다. 기본값은 None입니다. 이 특성은 HttpClientCredentialType 형식입니다.
proxyCredentialType - HTTP를 통한 프록시를 사용하여 도메인 내에서 클라이언트 인증을 수행할 때 사용되는 자격 증명의 형식을 지정합니다. 이 특성은 부모 mode 요소의 security 특성이 Transport 또는 TransportCredentialsOnly일 때만 적용할 수 있습니다. 이 특성은 HttpProxyCredentialType 형식입니다.
realm 다이제스트 또는 기본 인증의 HTTP 인증 체계에 사용되는 영역을 지정하는 문자열입니다. 기본값은 빈 문자열입니다.
policyEnforcement 이 열거형은 ExtendedProtectionPolicy가 적용되는 경우를 지정합니다.

1. Never - 정책이 적용되지 않습니다(확장 보호가 사용되지 않음).
2. WhenSupported – 클라이언트에서 확장 보호를 지원하는 경우에만 정책이 적용됩니다.
3. Always – 정책이 항상 적용됩니다. 확장 보호를 지원하지 않는 클라이언트는 인증되지 않습니다.
protectionScenario 이 열거형은 정책을 통해 적용되는 보호 시나리오를 지정합니다.

clientCredentialType 특성

Description
없음 메시지가 전송 중에 보호되지 않습니다.
Basic 기본 인증을 지정합니다.
다이제스트 다이제스트 인증을 지정합니다.
Ntlm Windows 인증이 실패할 경우 가능하면 NTLM 인증을 지정합니다.
Windows Windows 통합 인증을 지정합니다.

proxyCredentialType 특성

Description
없음 - 메시지가 전송 중에 보호되지 않습니다.
Basic RFC 2617 – HTTP 인증: 기본 및 다이제스트 인증에 정의된 대로 기본 인증을 지정합니다.
다이제스트 RFC 2617 – HTTP 인증: 기본 및 다이제스트 인증에 정의된 대로 다이제스트 인증을 지정합니다.
Ntlm Windows 인증이 실패할 경우 가능하면 NTLM 인증을 지정합니다.
Windows Windows 통합 인증을 지정합니다.
인증서 인증서를 사용하여 클라이언트 인증을 수행합니다. 이 옵션은 부모 Mode 요소의 security 특성이 Transport로 설정되어 있을 때만 작동하며 TransportCredentialOnly로 설정된 경우에는 작동하지 않습니다.

자식 요소

None

부모 요소

요소 Description
<security> <basicHttpBinding>에 대한 보안 기능을 정의합니다.

예제

다음 예제에서는 기본 바인딩이 있는 SSL 전송 보안을 사용하는 방법을 보여 줍니다. 기본적으로 기본 바인딩은 HTTP 통신을 지원합니다.

<system.serviceModel>
  <services>
    <service type="Microsoft.ServiceModel.Samples.CalculatorService"
             behaviorConfiguration="CalculatorServiceBehavior">
      <endpoint address=""
                binding="basicHttpBinding"
                bindingConfiguration="Binding1"
                contract="Microsoft.ServiceModel.Samples.ICalculator" />
    </service>
  </services>
  <bindings>
    <basicHttpBinding>
      <!-- Configure basicHttpBinding with Transport security -->
      <!-- mode and clientCredentialType set to None. -->
      <binding name="Binding1">
        <security mode="Transport">
          <transport clientCredentialType="None"
                     proxyCredentialType="None">
            <extendedProtectionPolicy policyEnforcement="WhenSupported"
                                      protectionScenario="TransportSelected">
              <customServiceNames>
              </customServiceNames>
            </extendedProtectionPolicy>
          </transport>
        </security>
      </binding>
    </basicHttpBinding>
  </bindings>
</system.serviceModel>

참고 항목