OpenAPITools / OpenAPITools/openapi-generator

[REQ] Migrate enable per request authentification in new python codegen

Open
#11,278 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

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

Actually in current python authentification is managed in api configuration.
But when you instantiate a new configuration, a new thread poll is create with it, so each time you need to change your authentification key, you will create a thread poll which will pull down the performance of the application.

We could have a global configuration and change the authentification but it will not be thread safe.

Describe the solution you'd like

The solution was already developed in python-legacy but it has not be migrated.
As designed in this PR #6569
Overwrite the authentification in the request

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 by reviewing PR #6569 and comparing the existing python-legacy implementation with the new Python codegen authentication and configuration paths. Trace how request authentication is currently obtained and how configuration creates its thread pool. Done means authentication can be overridden per request without repeatedly creating configuration thread pools, with coverage for the new behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.