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
Loading
Pipeline #15952 passed
...@@ -82,8 +82,10 @@ message CreateSingleRoleRequest { ...@@ -82,8 +82,10 @@ message CreateSingleRoleRequest {
// The new role. // The new role.
Role role = 1; Role role = 1;
} }
// Response message for the CreateSingleRole RPC // Response message for the CreateSingleRole RPC
message CreateSingleRoleResponse {} message CreateSingleRoleResponse {}
// Request message for the <+TODO+> RPC // Request message for the <+TODO+> RPC
message RetrieveSingleRoleRequest {} message RetrieveSingleRoleRequest {}
// Response message for the <+TODO+> RPC // Response message for the <+TODO+> RPC
...@@ -101,11 +103,21 @@ message DeleteSingleRoleResponse {} ...@@ -101,11 +103,21 @@ message DeleteSingleRoleResponse {}
// USER STUFF // 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 // User
message User { message User {
// Indicates whether the user is active. Only active users can sign in and // Indicates whether the user is active. Only active users can sign in and
// interact with the CaosDB Server. // interact with the CaosDB Server.
string active = 1; UserStatus status = 1;
// Realm of this user. The realm is the authority which can authenticate this // 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 // 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. // 'CaosDB' when CaosDB Server itself can authenticate the user.
...@@ -135,10 +147,17 @@ message ListUsersResponse { ...@@ -135,10 +147,17 @@ message ListUsersResponse {
repeated User users = 2; repeated User users = 2;
} }
// Request message for the <+TODO+> RPC // Request message for the CreateSingleUser RPC
message CreateSingleUserRequest {} message CreateSingleUserRequest {
// Response message for the <+TODO+> RPC // The new user.
User user = 1;
// The new password.
string password = 2;
}
// Response message for the CreateSingeUser RPC
message CreateSingleUserResponse {} message CreateSingleUserResponse {}
// Request message for the <+TODO+> RPC // Request message for the <+TODO+> RPC
message RetrieveSingleUserRequest {} message RetrieveSingleUserRequest {}
// Response message for the <+TODO+> RPC // Response message for the <+TODO+> RPC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment