title: Using swagger-codegen with username and password basic auth
body: <p>I have a django rest_framework API, Swagger and a Swagger UI.
  When I am not logged in I can see a very limited view of "login" and "docs".
  When I am logged in I can see lots of stuff.</p>
  
  <p>I am trying to use the swagger-codegen to generate a client:</p>
  
  <pre><code>java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \
  generate -i http://127.0.0.1:8080/api/docs/ -l python -o myclient
  </code></pre>
  
  <p>However, it only generates a very limited client that provides the "login" and "docs" functionality.</p>
  
  <p>How do I let swagger-codegen know how to login using http basic authentication, in order for it to generate a more complete client?</p>
  
  <p>The docs says I should do the following, but I do not know what it expects:</p>
  
  <pre><code>    -a &lt;authorization&gt;, --auth &lt;authorization&gt;
          adds authorization headers when fetching the swagger definitions
          remotely. Pass in a URL-encoded string of name:header with a comma
          separating multiple values
  </code></pre>