OpenAPITools / OpenAPITools/openapi-generator

[REQ] support auth token

Open
#17,823 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

hi,

i try to generate client in java for
https://gitlab.com/gitlab-org/gitlab/-/raw/master/doc/api/openapi/openapi.yaml

using
java -jar openapi-generator-cli-7.3.0.jar generate -i openapi.yaml -g java --additional-properties=library=native,annotationLibrary=none

the problem is that private-token is not included anywhere so i can't add auth header

am i missing something in that? maybe the support for this kind of specs is missing?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the referenced GitLab openapi.yaml and reproduce the Java generation command using openapi-generator-cli 7.3.0. Then trace how the specification's private-token authentication is represented in the generated client and compare it with supported security schemes. Done means the generated Java client exposes a usable way to send the required auth header.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.