Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines properties that control authentication parameters for the HTTP transport.
Schema Hierarchy
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding>
<security> of <basicHttpBinding>
<transport> of <basicHttpBinding>
Syntax
<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>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
clientCredentialType |
|
proxyCredentialType |
|
realm |
A string that specifies the realm that is used by the HTTP authentication scheme for digest or basic authentication. The default is an empty string. |
policyEnforcement |
This enumeration specifies when the ExtendedProtectionPolicy should be enforced.
|
protectionScenario |
This enumeration specifies the protection scenario enforced by the policy. |
Child Elements
None
Parent Elements
Element | Description |
---|---|
Defines the security capabilities for the <basicHttpBinding>. |
Example
The following example demonstrates the use of SSL transport security with the basic binding. By default, the basic binding supports HTTP communication.
<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>
</security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
See Also
Reference
Transport
Transport
HttpTransportSecurityElement
HttpTransportSecurity
Concepts
Other Resources
Securing Services and Clients
Windows Communication Foundation Bindings
Configuring System-Provided Bindings
Using Bindings to Configure Services and Clients