title: How to generate Basic authentication code with NSwagStudio?
body: <p>I am using NSwagStudio to generate the client classes/code from an Swagger 2.0 JSON file.</p>
  
  <p>Previously, it used to generate the following authentication code:</p>
  
  <pre class="lang-csharp prettyprint-override"><code>//Authentication
  var plainTextBytes = System.Text.Encoding.UTF8.GetBytes("username:password");
  string encodedAuth = System.Convert.ToBase64String(plainTextBytes);
  request_.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", encodedAuth);
  </code></pre>
  
  <p>Now it's not generating the above-mentioned <code>Authorization</code> header. What changes should I make in the JSON file to ensure that the generated code has the authentication code as above?</p>