I am using NSwagStudio to generate the client classes/code from an Swagger 2.0 JSON file.
Previously, it used to generate the following authentication 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);
Now it's not generating the above-mentioned Authorization
header. What changes should I make in the JSON file to ensure that the generated code has the authentication code as above?