swagger-api / swagger-api/swagger-codegen

[Python] OAuth2 support & refresh-tokens

Open
#4,000 12 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Python Enhancement: Feature help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

Hi! I have a few questions:

  1. Is it planned to integrate some sort of support for OAuth2 in that way that it would be auto-generated? If not, would you approve a PR to integrate it?
  2. It would be nice to use refresh-tokens to get transparent authorization. So if user makes a request and his token is outdated it would be great to try to renew token with refresh-token to avoid additional error throwing. Can this be integrated into the auto-generated client? Would such feature be merged if a PR is proposed?

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

The issue names no files, tests, or entry points. First clarify whether OAuth2 generation and transparent refresh-token handling are desired for generated Python clients, then review the generator's Python client path and existing authorization behavior. Done requires an agreed design and maintainer confirmation before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.