Add basic authentication

This commit is contained in:
2021-12-06 06:08:17 +01:00
parent 651de90839
commit aae3d9a217
15 changed files with 1039 additions and 804 deletions

View File

@@ -101,23 +101,12 @@ message RegisterUserResponse {
// Login
message LoginUserRequest {
message UserPasswordLogin {
string username = 1;
string password = 2;
}
message TokenLogin {
string token = 1;
}
oneof requested_login {
TokenLogin with_token = 1;
UserPasswordLogin with_password = 2;
}
string username = 1;
string password = 2;
}
message LoginUserResponse {
bytes server_cert = 1;
bytes client_cert = 2;
bytes client_key = 3;
bytes client_cert = 1;
bytes client_key = 2;
}
// List