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
  • #1408
Closed
Open
Issue created Nov 09, 2018 by Administrator@rootContributor

[PHP] Username checks null default value is empty string

Created by: phiamo

The php generator checks username and password for null, but default values are empty string ''

https://github.com/OpenAPITools/openapi-generator/blob/1522855915f941826879d468be0b65f798f732ca/modules/openapi-generator/src/main/resources/php/api.mustache#L510 https://github.com/OpenAPITools/openapi-generator/blob/1522855915f941826879d468be0b65f798f732ca/modules/openapi-generator/src/main/resources/php/Configuration.mustache#L60

When using e.g. an API which supports Bearer and http auth, the bearer Auth header gets replaced by: Basic Og==

Assignee
Assign to
Time tracking