swagger-api / swagger-api/swagger-codegen
[Python] OAuth2 support & refresh-tokens
Open
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:
- 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?
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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