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
  • #6023
Closed
Open
Issue created Apr 23, 2020 by Administrator@rootContributor

[REQ] support user provided authenticator in api client

Created by: zshihang

Is your feature request related to a problem? Please describe.

need an authenticator to refresh bearer token every X minutes in api client

Describe the solution you'd like

the typescript client generator already solved this by allowing user to supply a default authenticator. https://github.com/OpenAPITools/openapi-generator/blob/6dc3216f6d8c8566931552a59198c3e13cfaa291/modules/openapi-generator/src/main/resources/typescript-node/api-single.mustache#L43 we probably need to do the same thing to other generators, e.g. java, python,...etc..

Assignee
Assign to
Time tracking