diff options
author | Gordon GECOS <u@adam> | 2022-12-01 06:54:14 -0500 |
---|---|---|
committer | Gordon GECOS <u@adam> | 2022-12-01 06:54:14 -0500 |
commit | a6b757dc0444da71509fc10f3b01d4510f38be43 (patch) | |
tree | 217ba52075af5737f4f4d8a37f0a3830e805fff1 | |
parent | 13b5aef0378784a375ba18e2bc919b0d031904a2 (diff) |
improve documentation
-rw-r--r-- | commands.txt | 85 |
1 files changed, 51 insertions, 34 deletions
diff --git a/commands.txt b/commands.txt index 731f5f6..0e543a3 100644 --- a/commands.txt +++ b/commands.txt | |||
@@ -1,44 +1,71 @@ | |||
1 | commands: | 1 | Commands (via command-line): |
2 | 2 | ||
3 | run-quasselcore | 3 | run-quasselcore |
4 | runs quasselcore via sudo | 4 | runs quasselcore via sudo |
5 | 5 | ||
6 | create-quasselcore-user <username> [<<< <password>] | 6 | quasselcore-sqlite |
7 | creates the user in the quasselcore database | 7 | run sqlite3 on the quasselcore database |
8 | reads optional initial password | ||
9 | if no password read then generate random password | ||
10 | 8 | ||
11 | reset-quasselcore-user-password <username> <password> | 9 | quassluser database table interface is provided by eight functions: |
12 | sets the quasselcore user password | ||
13 | 10 | ||
14 | quasseluser-get-userid <username> | 11 | quasseluser-create <username> [<<< <password>] |
15 | if user exists, show userid and return true; otherwise return false | 12 | creates the user in the quasselcore database |
13 | reads optional initial password | ||
14 | if no password read then generate random password | ||
16 | 15 | ||
16 | quasseluser-set-password <username> <password> | ||
17 | sets the quasselcore user password | ||
17 | 18 | ||
19 | quasseluser-reset-password <username> | ||
20 | sets the quasselcore user password to a random string | ||
18 | 21 | ||
19 | create-invitation <username> <address> [<<< message] | 22 | quasseluser-check-password <username> <<< <password> |
20 | reads optional message | 23 | check the name/password pair against the database |
24 | |||
25 | quasseluser-get-userid <username> | ||
26 | if user exists, show userid and return true; otherwise return false | ||
27 | |||
28 | quasseluser-get-password <username> | ||
29 | show salt:password field for username | ||
30 | |||
31 | quasseluser-get <field name> <username> | ||
32 | query quasseluser table for named field | ||
33 | |||
34 | quasseluser-users | ||
35 | list all usernames | ||
36 | |||
37 | Server-Side Commands (e.g., endpoints) | ||
38 | |||
39 | (These are implemented in the video-responder repository.) | ||
40 | |||
41 | create-invitation <address> | ||
21 | creates entry in invitations/ | 42 | creates entry in invitations/ |
22 | outputs the invitation code | 43 | outputs the invitation code |
23 | 44 | ||
24 | create-user <invitation code> <new-username> [<<< password] | ||
25 | reads optional initial password | ||
26 | fails if existing entry in users/ OR in quasselcore database | ||
27 | creates entry in users/ | ||
28 | adds corresponding user to quasselcore database | ||
29 | outputs the address associated with the username | ||
30 | 45 | ||
31 | request-password-reset <username> <address> [new] | ||
32 | boolean "new" indicates setting initial password | ||
33 | creates entry in password-resets/ with shared secret | ||
34 | outputs pw-reset code | ||
35 | 46 | ||
36 | show-secret <pw-reset code> | 47 | create-preinvitation <username> |
37 | outputs shared secret | 48 | creates entry in preinvitations/. |
49 | outputs the preinvitation code. | ||
50 | input username is _inviting_ user. invited user has no username. | ||
51 | |||
52 | request-invitation <preinvitation code> <address> | ||
53 | calls create-invitation with the inviting user set to that of the | ||
54 | preinvitation. This should track up to the preinvitation source. | ||
38 | 55 | ||
39 | execute-password-reset <pw-reset code> | 56 | request-password-reset <username> <address> |
57 | stores and generates pw-reset code and shared secret. | ||
58 | triggers out-of-band transmission of shared secret. | ||
59 | outputs pw-reset code (or pw-reset url embedding code). | ||
40 | 60 | ||
61 | reset-password <pw-reset code> <shared secret> <(<<< passwd)> | ||
62 | validate the provided pw-reset code and shared secret. | ||
63 | set the password on the quassel account to the password provided. | ||
64 | it is accessible under an url that contains the pw-reset code. | ||
41 | 65 | ||
66 | send-invitation-email <invitation code> | ||
67 | send email with link | ||
68 | invitation code is embedded in link URL | ||
42 | 69 | ||
43 | create-pdf-invitation [message] | 70 | create-pdf-invitation [message] |
44 | creates entry in pre-invitations/ | 71 | creates entry in pre-invitations/ |
@@ -50,18 +77,8 @@ commands: | |||
50 | link is to an HTML page equivalent to the PDF | 77 | link is to an HTML page equivalent to the PDF |
51 | returns index as e.g. 0 for database/invitation-sheet/0 | 78 | returns index as e.g. 0 for database/invitation-sheet/0 |
52 | 79 | ||
53 | send-invitation-email <invitation code> | ||
54 | send email with link | ||
55 | invitation code is embedded in link URL | ||
56 | |||
57 | send-password-reset-email <pw-reset code> [new] | 80 | send-password-reset-email <pw-reset code> [new] |
58 | constructed link will contain shared secret | 81 | constructed link will contain shared secret |
59 | linked page will contain html form accepting shared secret via user input | 82 | linked page will contain html form accepting shared secret via user input |
60 | linked page gets pw-reset code from browser via cookie | 83 | linked page gets pw-reset code from browser via cookie |
61 | 84 | ||
62 | reset-password <pw-reset code> <shared secret> <(<<< passwd)> | ||
63 | validate the provided pw-reset code and shared secret | ||
64 | set the password on the quassel account to the password provided | ||
65 | this has to be an HTML form served on a web server | ||
66 | it is accessible under an url that contains the pw-reset code. | ||
67 | |||