-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[python-client] Enable per-request auth settings #6569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[python-client] Enable per-request auth settings #6569
Conversation
ea153f7 to
f0229a6
Compare
modules/openapi-generator/src/main/resources/python/api_client.mustache
Outdated
Show resolved
Hide resolved
spacether
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR. Your solution looks good, there is just a small issue where multiple instances of the same auth info can be attached to a request. I noted it in a comment. Can you take a look at it and tweak it so we fix that issue?
a9e5fc2 to
4a4b7dd
Compare
…uth settings when specified.
4a4b7dd to
a8a7672
Compare
spacether
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you for the PR!
Fixes #6565
The changes are backward compatible with existing wiring since we're only adding optional keyword arguments.
Please forgive me if I've missed something in the contributing guidelines.
@taxpon @frol @mbohlool @cbornet @kenjones-cisco @tomplus @Jyhess @arun-nalla @spacether
PR checklist
./bin/(or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh,./bin/openapi3/{LANG}-petstore.shif updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).master,4.3.x,5.0.x. Default:master.