[Bug][Python] oauth
Created by: loeti82
Description
I generated Python client from our valid OpenAPI Spec. But the OAuth2 code is incomplete (in my understanding)
The Getting Started section in the generated client looks like this
openapi-generator version
Latest release (commit d0d545bb) with the help of docker
OpenAPI declaration file content or url
Command line used for generation
./run-in-docker.sh generate -i ./clientapi-v3-openapi-spec.json -g python -o ./out/python-client
Steps to reproduce
Following the instructions here: https://github.com/OpenAPITools/openapi-generator#16---docker
Related issues/PRs
#776 for Java but same intention Similar Issue in C-Sharp: #3714 Maybe: #2411
Suggest a fix/enhancement
Option 1: I would find something like this helpful.
config=openapi_client.Configuration() config.oauth.client.id= client_id config.oauth.client.secret= client_secret config.oauth.client.user= user ...
Option 2: If it is required to write my own layer to handle/generate the oauth2 token I would appreciate if the documentation and the generated readme would point me to this.