I'm working with the Service Bus for Windows Server (on premise). To use the Service Bus as a relay, I use this:
That works fine if I run my WCF services on my localhost. But when I deploy my services to a test server, this solution doesn't work anymore. I need to give a username and a password to authenticate, but how can I do that in web.config?
<endpointBehaviors> <behavior name="securityBehavior"><transportClientEndpointBehavior> <tokenProvider><windowsAuthentication> <stsUris> <stsUri value="https://path-to-queue /> </stsUris> </windowsAuthentication> </tokenProvider> </transportClientEndpointBehavior> </behavior>
That works fine if I run my WCF services on my localhost. But when I deploy my services to a test server, this solution doesn't work anymore. I need to give a username and a password to authenticate, but how can I do that in web.config?