-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Updated keycloak.py to allow defining connection timeout value (#4168) #4178
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
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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.
Thanks for your contribution!
You also need to document the new parameter in plugins/doc_fragments/keycloak.py.
This comment was marked as outdated.
This comment was marked as outdated.
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.
Please check out the linting errors reported by CI, these also need to be fixed before merging.
Also CC @fynncfchen since this will 8000 affect the new modules PRs. The code they add (to module_utils) will have to be modified to use the timeout parameter as well. |
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #4198 🤖 @patchback |
@laskasn thanks for contributing this! |
#4178) (#4198) * Updated keycloak.py to allow defining connection timeout value (#4168) (#2) * Added parameter to doc_fragments and edited the changelog message (#4168) * Added parameter to doc_fragments and edited the changelog message (#4168) (cherry picked from commit 2498591) Co-authored-by: Nikolas Laskaris <laskarisn@gmail.com>
SUMMARY
You can find a summary along with a discussion here
IMPORTANT: This pull request adds a new parameter to the keycloak module, the
connection_timeout
.If provided, it propagates this value as the optional value
timeout
to theopen_url()
calls. By default (if not defined), it inherits the 10 sec default value of the underlyingtimeout
parameter.We decided to name it
connection_timeout
instead of justtimeout
, because we didn't want to have a naming collision with the task timeout parameter or the network-specific ones, as mentioned here, but we could rename it into anything else in case this name is not appropriate.The documentation should also be updated, to include this parameter as an optional to all keycloak plugin calls.
ISSUE TYPE
COMPONENT NAME
keycloak
ADDITIONAL INFORMATION