Skip to content
Snippets Groups Projects
Verified Commit db8b8ea3 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: acm

parent 69733f6d
No related branches found
No related tags found
2 merge requests!8Release 0.2,!7F acm
Pipeline #15952 passed
......@@ -82,8 +82,10 @@ message CreateSingleRoleRequest {
// The new role.
Role role = 1;
}
// Response message for the CreateSingleRole RPC
message CreateSingleRoleResponse {}
// Request message for the <+TODO+> RPC
message RetrieveSingleRoleRequest {}
// Response message for the <+TODO+> RPC
......@@ -101,11 +103,21 @@ message DeleteSingleRoleResponse {}
// USER STUFF
///////////////////////////////////////////
// UserStatus
enum UserStatus {
// The user status is unspecified/unknown.
USER_STATUS_UNSPECIFIED = 0;
// The user is inactive and cannot sign in.
USER_STATUS_INACTIVE = 1;
// The user is active and can sign in.
USER_STATUS_ACTIVE = 2;
}
// User
message User {
// Indicates whether the user is active. Only active users can sign in and
// interact with the CaosDB Server.
string active = 1;
UserStatus status = 1;
// Realm of this user. The realm is the authority which can authenticate this
// user, e.g. 'PAM' when the user is a (POSIX) user from the server's host, or
// 'CaosDB' when CaosDB Server itself can authenticate the user.
......@@ -135,10 +147,17 @@ message ListUsersResponse {
repeated User users = 2;
}
// Request message for the <+TODO+> RPC
message CreateSingleUserRequest {}
// Response message for the <+TODO+> RPC
// Request message for the CreateSingleUser RPC
message CreateSingleUserRequest {
// The new user.
User user = 1;
// The new password.
string password = 2;
}
// Response message for the CreateSingeUser RPC
message CreateSingleUserResponse {}
// Request message for the <+TODO+> RPC
message RetrieveSingleUserRequest {}
// Response message for the <+TODO+> RPC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment