Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Connect to Service Bus for Windows Server with web.config configuration

$
0
0
I'm working with the Service Bus for Windows Server (on premise). To use the Service Bus as a relay, I use this:
 <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?

Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>