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
  • #919
Closed
Open
Issue created Aug 29, 2018 by Administrator@rootContributor

choose authentication in python client?

Created by: jokedurnez

Thank you developers ! This is a great tool !! Just a problem with multiple authentication methods...

Description

I have multiple ways of authenticating:

i.e. in a path:

      security:
        - apiKey: []
        - openlattice_auth: []

...

    openlattice_auth:
        type: "http"
        scheme: "bearer"
        bearerFormat: "JWT"
    apiKey:
        type: apiKey
        in: header
        name: Authorization

When I only specify -apiKey: [], I get my data in the python client. However, when both are there, it by default tries to use the openlattice_auth. Is there a way to specify the specific authentication in the client?

openapi-generator version

org.openapitools:openapi-generator-gradle-plugin:3.2.2

OpenAPI declaration file content or url

Full api spec here: https://github.com/openlattice/api/blob/develop/openlattice.yaml#L985 (line = security definition)

Command line used for generation

In the repo posted above: ./gradlew generatePythonClient

Assignee
Assign to
Time tracking