/
Basic Authentication

Basic Authentication

It is possible to have a wcf with basic authentication.

For this the service needs to be configured with a behavior and the enpoint needs a binding configuration.

Example:

<!-- For use with Retail DMA --> <service behaviorConfiguration="BasicAuthServiceBehavior" name="RetailOrderInstructionService"> <endpoint address="" binding="webHttpBinding" contract="Kodi.Kodiak.Services.IRetailOrderInstructionService" behaviorConfiguration="rest" bindingConfiguration="WebHttpsMessageCredentialBinding"/> </service>

 

Service BehaviorConfiguration

<behaviors> <serviceBehaviors> <behavior name="BasicAuthServiceBehavior"> <serviceMetadata httpGetEnabled="false" /> <serviceDebug includeExceptionDetailInFaults="true" /> <serviceCredentials> <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="Kodi.Kodiak.Security.BasicUsernamePasswordValidator, Kodi.Kodiak.Security" /> <serviceCertificate storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint" findValue="ea90bdd15d16be21bd17b547da5690e1756e6a3b"/> </serviceCredentials> <serviceThrottling maxConcurrentCalls="200" maxConcurrentSessions="200" maxConcurrentInstances="200" /> <dataContractSerializer maxItemsInObjectGraph="2147483646" /> </behavior> ...

 

Endpoint BindingConfiguration

needs to have a transport node with clientCredentialType = “Basic”

<bindings> <webHttpBinding> <binding name="WebHttpsMessageCredentialBinding"> <security mode="Transport"> <transport clientCredentialType="Basic" /> </security> </binding> ...

Related content

FixService WCF Service in OMS Order Entry Server
FixService WCF Service in OMS Order Entry Server
More like this
Retail Order Instruction REST service
Retail Order Instruction REST service
More like this
Kodiak Token Service and Authenticator
Kodiak Token Service and Authenticator
More like this
Retail WCF Service
Retail WCF Service
More like this
SSL Support
SSL Support
More like this
The caller was not authenticated by the service.
The caller was not authenticated by the service.
More like this