Completely refactor project structure
parent: tbd commit: ae8ff44
1 | use ; |
2 | |
3 | use crate UserAuthenticationToken; |
4 | |
5 | /// An account registration request. |
6 | /// |
7 | /// # Authentication |
8 | /// - Instance Authentication |
9 | /// - **ONLY ACCEPTED WHEN SAME-INSTANCE** |
10 | |
11 | |
12 | pub username: String, |
13 | pub email: , |
14 | pub password: String, |
15 | |
16 | |
17 | |
18 | |
19 | pub token: String, |
20 | |
21 | |
22 | /// An authentication token request. |
23 | /// |
24 | /// AKA Login Request |
25 | /// |
26 | /// # Authentication |
27 | /// - Instance Authentication |
28 | /// - Identifies the Instance to issue the token for |
29 | /// # Authorization |
30 | /// - Credentials ([`crate::backend::AuthBackend`]-based) |
31 | /// - Identifies the User account to issue a token for |
32 | /// - Decrypts user private key to issue to |
33 | |
34 | |
35 | pub username: String, |
36 | pub password: String, |
37 | |
38 | |
39 | |
40 | |
41 | pub token: UserAuthenticationToken, |
42 | |
43 | |
44 | /// An authentication token extension request. |
45 | /// |
46 | /// # Authentication |
47 | /// - Instance Authentication |
48 | /// - Identifies the Instance to issue the token for |
49 | /// - User Authentication |
50 | /// - Authenticates the validity of the token |
51 | /// # Authorization |
52 | /// - Token-based |
53 | /// - Validates authorization using token's authenticity |
54 | |
55 | |
56 | pub token: UserAuthenticationToken, |
57 | |
58 | |
59 | |
60 | |
61 | pub new_token: , |
62 | |
63 |