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

EHN: add GetSessionInfo RPC

parent 26b47c4c
No related branches found
No related tags found
2 merge requests!8Release 0.2,!7F acm
Pipeline #15283 failed
......@@ -77,9 +77,12 @@ message ListRolesResponse {
repeated Role roles = 2;
}
// Request message for the <+TODO+> RPC
message CreateSingleRoleRequest {}
// Response message for the <+TODO+> RPC
// Request message for the CreateSingleRole RPC
message CreateSingleRoleRequest {
// The new role.
Role role = 1;
}
// Response message for the CreateSingleRole RPC
message CreateSingleRoleResponse {}
// Request message for the <+TODO+> RPC
message RetrieveSingleRoleRequest {}
......
......@@ -25,6 +25,9 @@ option java_package = "org.caosdb.api.info.v1alpha1";
package caosdb.info.v1alpha1;
/////////////////////////////// SERVER VERSION
// The version of an agent (following SemVer 2.0.0)
message VersionInfo {
// Major version number
......@@ -48,8 +51,24 @@ message GetVersionInfoResponse {
VersionInfo version_info = 1;
}
////////////////////////// SESSION
// Request message for the GetSessionInfo RPC
message GetSessionInfoRequest {
}
// Response message for the GetSessionInfo RPC
message GetSessionInfoResponse {
string realm = 1;
string username = 2;
repeated string roles = 3;
int64 expires = 4;
}
// A service which provides general information about the server.
service GeneralInfoService {
// Request the detailed version information from the server.
rpc GetVersionInfo(GetVersionInfoRequest) returns (GetVersionInfoResponse) {};
// Request information about the current session (user, roles, timeout...).
rpc GetSessionInfo(GetSessionInfoRequest) returns (GetSessionInfoResponse) {};
}
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