Hello,

When I generate a `-l Java` client with codegen from a swagger20.json the 
generated code does not allow me to specify an unconditional http basic 
authentication (setUsername throws exception as it does not find a matching 
security scheme)

The reason for that is (in my case), there is no security defined in that 
swagger file. This is somewhat intentional since the file is generic and 
authentication may carry and multiple methods are supported (but all operations 
require authentication)

Anyway, I wonder if codegen should generate stub code where I can sent a login 
for all operations or at least feature a option which allows to attach a 
default security. 

Have seen multiple discussions about it, here is an issue:
https://github.com/swagger-api/swagger-codegen/issues/5743

Any thoughts on that?
Bernd



-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to