Allow logging in with an API token.
Review Request #13108 — Created June 15, 2023 and submitted
This updates the login methods on the server and transport classes to allow
logging in to the Review Board server with either a username and password
combination or an API token.
- Ran unit tests.
- Tested with the upcoming web based login flow change which uses an API
token to login. - Tested logging in with a username and password.
- Tested logging out.
- Tested passing
--username
and--password
options to commands. - Tested passing
--api-token
option to commands.
Summary | ID |
---|---|
7c31af309f8e08535fc9439d27b198692fa527d5 |
Description | From | Last Updated |
---|---|---|
Let's make this a keyword-only argument. In fact, ideally, they'd all be (we can use housekeeping to deprecate old behavior). … |
chipx86 | |
We should probably put the same notice in reset(). |
chipx86 | |
Looks like these None values can be removed now, right? They're all defaults. |
chipx86 | |
Let's call these with keyword arguments now, since the call's starting to get more complex and less obvious. I want … |
chipx86 |
-
-
Let's make this a keyword-only argument. In fact, ideally, they'd all be (we can use housekeeping to deprecate old behavior).
Same with
reset()
, probably. -
-
-
Let's call these with keyword arguments now, since the call's starting to get more complex and less obvious.
I want to start using keyword-only arguments in more places to give us room to expand and change the API implementation as we grow it.
- Commits:
-
Summary ID 52a9ed0f3639273c68c13363d0aac2e4edda0885 0887f58e4a019522ee3dea22bd6aa6f0f9f2a7dc
Checks run (2 succeeded)
- Change Summary:
-
- Updated
URLMapTransport
to have theapi_token
/username
/password
changes too.
- Updated
- Commits:
-
Summary ID 0887f58e4a019522ee3dea22bd6aa6f0f9f2a7dc 7c31af309f8e08535fc9439d27b198692fa527d5