I'm using OpenAPI Generator to generate a Java 11 HTTP Client for a swagger-compliant service.
The thing is: this service requires basic authentication but it doesn't challenge the client with a WWW-Authenticate
header, so the Java 11 HTTP Client won't send the basic authentication configured with the builder. The workaround for this is to add the Authorization
header directly in the request, as suggested in this thread.
Now: as of version 4.3.1, OpenAPI Generator won't expose me an interface to customize the HTTP requests, so I'm wondering if it would be best to override the responsible template (api.mustache:126) or if there is a cleaner alternative for this task.