OpenAPITools/openapi-generator

[Bug][Python] oauth

Open

#3,768 创建于 2019年8月27日

在 GitHub 查看
 (20 评论) (4 反应) (0 负责人)Java (26,243 star) (7,516 fork)batch import
Client: PythonEnhancement: FeatureHacktoberfesthelp wanted

描述

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.

贡献者指南