Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #3768
Closed
Open
Issue created Aug 27, 2019 by Administrator@rootContributor

[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

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.

Assignee
Assign to
Time tracking