title: SOCKS5 Proxy Authentication in Google Chrome Extension
body: <p>I'm trying to create a extension which would use my SOCKS5 proxy with authentication.
  Code in my background script is like this:</p>
  
  <pre><code>var config = {
      mode: "fixed_servers",
      rules: {
          fallbackProxy: {
              scheme: "socks5",
              host: "myhostaddress"
          }
      }
  };
  chrome.proxy.settings.set(
      { value: config, scope: 'regular' },
      function () { });
  
  chrome.webRequest.onAuthRequired.addListener(
      function (details) {
          console.log("onAuthRequired!", details);
          return ({
              authCredentials: {
                  'username': "uname",
                  'password': "pass"
              }
          });
      },
      { urls: ["&lt;all_urls&gt;"] },
      ['blocking']
  );
  </code></pre>
  
  <p>But I always get <code>ERR_SOCKS_CONNECTION_FAILED</code> error on each page...
  What am I doing wrong?</p>