I apologize if this has been answered already, but I can't find a clear answer.
Does the current generator support authentication?
I need to generate a client with 2 potential ways of authentication:
- Via API key, which means a required
api_token
parameter. - Via an OAuth 2 authentication code flow.
If it does, how do I use it?
If it doesn't, what do you think is the best way to add authentication after generating the client?
api_key
andoauth
, most generators have great support. One complexity to the OP's question… OpenAPI spec states Security Requirement Objects that contain multiple schemes require that all schemes MUST be satisfied for a request to be authorized., meaning multiple schemas aren't either-or as is being asked. – Jody