-
Notifications
You must be signed in to change notification settings - Fork 22
Add support for additional request parameters in login methods #865
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
83b7338 to
bcc7fab
Compare
bcc7fab to
bfd5b86
Compare
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
LGTM |
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.
Pull Request Overview
This PR adds support for passing additional HTTP request parameters to login methods. The primary goal is to enable users to specify custom request parameters like proxies, headers, timeout settings, and SSL verification options when authenticating with MediaWiki instances.
Key changes:
- Enhanced
LoginandClientloginclasses to accept**kwargsparameters for HTTP requests - Added parameter filtering to only allow specific safe parameters (
headers,proxies,timeout,verify) - Added logging warnings for unsupported parameters
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| wikibaseintegrator/wbi_login.py | Added **kwargs support to Login and Clientlogin constructors with parameter filtering and validation |
| test/test_wbi_login.py | Added test for SSL verification functionality and modernized test assertions to use pytest.raises |
| test/test_wbi_helpers.py | Modernized test assertions from unittest.TestCase().assertRaises to pytest.raises |
No description provided.