Skip to content

Commit

Permalink
fix(tiphereth): add ListRegisteredDevices
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Feb 19, 2024
1 parent 3b96c6a commit 9ae385b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proto/librarian/sephirah/v1/sephirah.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ service LibrarianSephirahService {
// The server could add extra limits to non-registered device
rpc RegisterDevice(RegisterDeviceRequest) returns (RegisterDeviceResponse);
// `Tiphereth` `Normal`
rpc ListRegisteredDevices(ListRegisteredDevicesRequest) returns (ListRegisteredDevicesResponse);
// `Tiphereth` `Normal`
rpc ListUserSessions(ListUserSessionsRequest) returns (ListUserSessionsResponse);
// `Tiphereth` `Normal` delete session will revoke refresh_token immediately.
// NOTE: This can also be used to logout on server side.
// NOTE: This can also be used to log out at server side.
// NOTE2: Delete session will not affect device registration.
rpc DeleteUserSession(DeleteUserSessionRequest) returns (DeleteUserSessionResponse);

// `Tiphereth` `Admin` `Normal limited`
Expand Down
5 changes: 5 additions & 0 deletions proto/librarian/sephirah/v1/tiphereth.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ message RegisterDeviceResponse {
librarian.v1.InternalID device_id = 1;
}

message ListRegisteredDevicesRequest {}
message ListRegisteredDevicesResponse {
repeated DeviceInfo devices = 1;
}

message ListUserSessionsRequest {}
message ListUserSessionsResponse {
repeated UserSession sessions = 1;
Expand Down

0 comments on commit 9ae385b

Please sign in to comment.