OpenAPITools/openapi-generator

[Bug][Python] oauth

Open

#3,768 opened on Aug 27, 2019

View on GitHub
 (20 comments) (4 reactions) (0 assignees)Java (26,243 stars) (7,516 forks)batch import
Client: PythonEnhancement: FeatureHacktoberfesthelp wanted

Description

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 d0d545bbdd409a177befa12cff809607751941f2) with the help of docker

OpenAPI declaration file content or url

OpenAPI Gist

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.

Contributor guide