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
  • #1985
Closed
Open
Issue created Jan 25, 2019 by Administrator@rootContributor0 of 1 checklist item completed0/1 checklist item

[BUG] [typescript-angular] bearer auth is handled like basic auth

Created by: MBcom

Bug Report Checklist

  • [x ] Have you provided a full/minimal spec to reproduce the issue?
  • [x ] Have you validated the input using an OpenAPI validator (example)?
  • [ x] What's the version of OpenAPI Generator used?
  • [x ] Have you search for related issues/PRs?
  • [x ] What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description
  • generate a typescript angular package with configured bearer auth like
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
  • and the result in the generated package is that it trys to use basic authentication with username and password
  • the expected behaviour is too send the bearer token in the header of the api request
    -> look at my suggestions in the related pull request
openapi-generator version

4.0.0

OpenAPI declaration file content or url

look above

Command line used for generation
Steps to reproduce

generate a typescript-angular package with the open aip generator cli

Related issues/PRs

#1446 (closed), #1577 (closed), #457 (closed), #1930

Suggest a fix

look at the linked pull request

Assignee
Assign to
Time tracking