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
  • #3407
Closed
Open
Issue created Jul 20, 2019 by Administrator@rootContributor

[REQ] [typescript-node] Promise-based Authentication interface

Created by: silasbw

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

The current TypeScript Node Authentication interface for applying authentication settings (.applyToRequest) is synchronous. It would be useful to support a Promise-based asynchronous API also. For example, to fetch a refreshed authentication token.

https://github.com/kubernetes-client/javascript/issues/294#issuecomment-510323971 is one example that would use this feature.

Describe the solution you'd like

Update Authentication.applyToRequest to return Promise<void> | void.

Describe alternatives you've considered

  1. "spawnSync-style hacks", like serializing arguments and passing them to an script and parsing the result
  2. Breaking change to Authentication.applyToRequest that forces all implementers to return a Promise<void>
Assignee
Assign to
Time tracking