Allow all rbt commands to authenticate using web-based login.
Review Request #14576 — Created Sept. 8, 2025 and updated
This is the final change in a series of changes that ultimately allow
using web-based login for authentication in any rbt command.We pass a web login callback function through to the
ReviewBoardHTTPPasswordMgrwhere our other auth callbacks live. We
also add aReviewBoardWebLoginHandlerauth handler which attempts
web-based login once upon the first HTTP 401. If it fails, we fall back
on our existing handlers.
- Tested
rbt postandrbt statuspassing--web-loginto log in to
a local dev server. - Tested
rbt postandrbt statuspassing--web-loginto log in to
the real https://reviews.reviewboard.org server. - In the above tests, made sure that the
ReviewBoardWebLoginHandler
auth handler logic was reached byrbt post, and the
get_authenticated_sessionlogic was reached byrbt status. - Tested on RB6 and RB7.1.
- Ran unit tests and add unit tests in an upcoming change.
| Summary | ID |
|---|---|
| a386d7e788ee684b3a6c58c9d7465e413859d518 |
| Description | From | Last Updated |
|---|---|---|
|
Can you add docs and a "Version Added" for this? |
|
|
|
Let's put two blank lines on either side. |
|
|
|
This should include a "Version Changed" with the new argument. |
|
|
|
The description shouldn't be indented. |
|
|
|
Is this to address a circular import? If so, can you add a comment for that? |
|
|
|
Blank line after the class docstring. |
|
|
|
This can be HTTPResponse | None now. |
|
|
|
Same here. |
|
|
|
This can be (WebLoginCallback | None) = None. |
|
|
|
Can you also add this to a "Version Changed" on the method? |
|
|
|
Same comment re: | None. |
|
|
|
Same comment re: "Version Changed" on the method. |
|
|
|
Description should be indented one level. |
|
|
|
Let's go with 5.4 for this release. |
|
|
|
web_login_callback appears last in the argument list. |
|
- Change Summary:
-
Add missing docs and follow modern typing syntax.
- Commits:
-
Summary ID 23bc2928db6b06360cc3f23cd7b5f84e386f91f2 70ced093ce0d19bf9d6e892e1f898696243a6edd