Open joschi opened 4 years ago
Users could create a custom request interceptor right now to emulate the functionality:
String myToken = "...";
ApiClient apiClient = new ApiClient();
apiClient.setRequestInterceptor(builder -> builder.header("Authorization", "apiToken " + myToken));
In my opinion this doesn't fulfill the expectation of the clients "just working", though.
Bug Report Checklist
Description
The Java 11 Native HTTP client generator (
native
) doesn't supportsecurity
andsecuritySchemes
as described in https://swagger.io/docs/specification/authentication/ and https://swagger.io/specification/#security-scheme-object.openapi-generator version
openapi-generator-cli 4.3.1
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Use the OpenAPI spec from above and the command line mentioned above to generate the client.
No
ApiKeyAuth
class or any class related to authentication at all is being generated.