title: Using Azure EventHub behind a proxy with authentication
body: <p><strong>UPDATE</strong></p>
  
  <p>There are some News on that, see here: <a href="https://blogs.msdn.microsoft.com/eventhubs/2018/09/21/azure-event-hubs-websockets-and-proxy-support/" rel="nofollow noreferrer">https://blogs.msdn.microsoft.com/eventhubs/2018/09/21/azure-event-hubs-websockets-and-proxy-support/</a></p>
  
  <p><strong>====</strong></p>
  
  <p>Azure's <code>EventProcessorHost</code> can be used to register and <code>EventProcessor</code> against an EventHub:</p>
  
  <pre><code>EventProcessorHost host = new EventProcessorHost(
      EventProcessorHost.createHostName(null), 
      connectionStringBuilder.getEventHubName(),
      "$Default",
      ConnectionStringBuilder.toString(),
      this.storageConnectionString,
      this.storageContainerName
    );
  
    host.registerEventProcessor(MyEventProcessor.class, options).get();
  </code></pre>
  
  <p>One can add a proxy beforehand:</p>
  
  <pre><code> OperationContext.setDefaultProxy(
      new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxy.url.com", 1234))
   );
  </code></pre>
  
  <p><strong>Question</strong>: How to provide an authentication (username/password) to this proxy?</p>