Display the correct value for the client web login server capability and add docs.
Review Request #13693 — Created April 3, 2024 and submitted
When building the client web login capability in the server info resource,
we would grab theclient_web_login
setting from the site configuration
but use a default value ofFalse
if the setting doesn't exist in the site
configuration. We should actually be using the default value that is set in
siteconfig.py
, which isTrue
. This change fixes that.This change also adds documentation that explains how certain services can
authenticate to Review Board via the login page and that API tokens will be
automatically created for them. We also add docs for the automatic token
expiration setting that was added in the admin authentication page.
- Tested
rbt login
to a server that didn't have aclient_web_login
setting in site config, saw that it defaulted to web-based login. - Built and viewed the docs that I added.
- Ran unit tests.
Summary | ID |
---|---|
0b5ed02daf65aa0263cdb2109ede76971c830f39 |
Description | From | Last Updated |
---|---|---|
'djblets.db.fields.json_field.JSONDict' imported but unused Column: 5 Error code: F401 |
reviewbot | |
Can we add an assertion at the beginning of this that the key is not present in the siteconfig settings … |
david | |
This says "login" three times in the space of 9 words. I'm not sure we have a real standard here, … |
david | |
Same "login login" problem here. |
david | |
pop is most useful when we want to return the value as part of it. We can instead use del … |
chipx86 | |
We should be able to just check against siteconfig.settings, which will be faster than checking keys(). |
chipx86 |
- Commits:
-
Summary ID 3441bd1aec16cdd0eeb0a1d68a15ffa949cd4082 c0c18247b9eace5c225020429da061bdadfbb19b
Checks run (2 succeeded)
- Change Summary:
-
- Removed an
assertEquals
call because its deprecated. - Actually made sure the client login settings were removed from the site configuration
in the unit test where we test for that.
- Removed an
- Commits:
-
Summary ID c0c18247b9eace5c225020429da061bdadfbb19b b288a4e30824ef44e2b5b9f0de1fe6790e33f820
Checks run (2 succeeded)
-
-
This says "login" three times in the space of 9 words.
I'm not sure we have a real standard here, but my personal inclination is that we should use "login" as a noun/adjective, and "log in" as a verb.
So perhaps something like "... directing the user to log in via the web site. Upon successful authentication, the API token ..." ?
-
- Commits:
-
Summary ID b288a4e30824ef44e2b5b9f0de1fe6790e33f820 5babd36546fc43551c99c189d2db2736aad24dfc