Revert authentication payload change
parent: tbd commit: 16b4bc2
1 | use ; |
2 | |
3 | use crate; |
4 | |
5 | use MessageTarget; |
6 | |
7 | /// An account registration request. |
8 | /// |
9 | /// # Authentication |
10 | /// - Instance Authentication |
11 | /// - **ONLY ACCEPTED WHEN SAME-INSTANCE** |
12 | |
13 | |
14 | pub username: String, |
15 | pub email: , |
16 | pub password: String, |
17 | |
18 | |
19 | |
20 | |
21 | None |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | pub token: String, |
28 | |
29 | |
30 | /// An authentication token request. |
31 | /// |
32 | /// AKA Login Request |
33 | /// |
34 | /// # Authentication |
35 | /// - Instance Authentication |
36 | /// - Identifies the Instance to issue the token for |
37 | /// # Authorization |
38 | /// - Credentials ([`crate::backend::AuthBackend`]-based) |
39 | /// - Identifies the User account to issue a token for |
40 | /// - Decrypts user private key to issue to |
41 | |
42 | |
43 | pub instance: Instance, |
44 | pub username: String, |
45 | pub password: String, |
46 | |
47 | |
48 | |
49 | |
50 | Some |
51 | |
52 | |
53 | |
54 | |
55 | |
56 | pub token: UserAuthenticationToken, |
57 | |
58 | |
59 | /// An authentication token extension request. |
60 | /// |
61 | /// # Authentication |
62 | /// - Instance Authentication |
63 | /// - Identifies the Instance to issue the token for |
64 | /// - User Authentication |
65 | /// - Authenticates the validity of the token |
66 | /// # Authorization |
67 | /// - Token-based |
68 | /// - Validates authorization using token's authenticity |
69 | |
70 | |
71 | pub token: UserAuthenticationToken, |
72 | |
73 | |
74 | |
75 | |
76 | // todo! |
77 | None |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | pub new_token: , |
84 | |
85 |