title: How to use authenticated repo in bazel for thirdparty dependant artifacts
body: <p>My code depends on some thirdparty artifacts, that are put in some authenticated repo. 
  WORKSPACE file is like this</p>
  
  <pre><code>http_archive(
    name = "glog_archive",
    build_file = "@//:third_party/BUILD.glog",
    sha256 = "SOME SHA ID",
    url = "https://artifactory/thirdparty/glog.&lt;version&gt;.tar.gz",
  )
  </code></pre>
  
  <p>But repo <a href="https://artifactory/thirdparty/" rel="nofollow noreferrer">https://artifactory/thirdparty/</a> is authenticated. </p>
  
  <p>How can I put user/password or API key so that download of thirdparty archives works well?</p>
  
  <p>Went through this doc <a href="https://docs.bazel.build/versions/master/repo/http.html#http_archive-auth_patterns" rel="nofollow noreferrer">https://docs.bazel.build/versions/master/repo/http.html#http_archive-auth_patterns</a></p>
  
  <p>But couldnot get it correctly.</p>
  
  <p>If there any example I can get?</p>
  
  <p>Thanks</p>
  
  <p>-Gaurav</p>