I have a nswag.json file with my configuration to generate c# http clients. However, the swagger url that I want to point to is protected with Http basic auth.
Is it possible to add to the configuration file the necessary username and password?
Something that would look like this (from documentGenerator section in nswag.json):
"documentGenerator": {
"fromDocument": {
"url": "https://example.com/swagger/v1/swagger.json",
"output": null,
"newLineBehavior": "Auto",
"authorization": {
"type": "Basic",
"username": "example",
"password": "example"
}
}
Thanks in advance!