Page MenuHomePhabricator

D6788.id22751.diff
No OneTemporary

D6788.id22751.diff

diff --git a/services/identity/src/service.rs b/services/identity/src/service.rs
--- a/services/identity/src/service.rs
+++ b/services/identity/src/service.rs
@@ -39,9 +39,10 @@
registration_request::Data::PakeRegistrationRequestAndUserId,
registration_request::Data::PakeRegistrationUploadAndCredentialRequest,
registration_response::Data::PakeLoginResponse as PakeRegistrationLoginResponse,
- registration_response::Data::PakeRegistrationResponse, GetUserIdRequest,
- GetUserIdResponse, GetUserPublicKeyRequest, GetUserPublicKeyResponse,
- LoginRequest, LoginResponse, PakeLoginRequest as PakeLoginRequestStruct,
+ registration_response::Data::PakeRegistrationResponse, DeleteUserRequest,
+ DeleteUserResponse, GetUserIdRequest, GetUserIdResponse,
+ GetUserPublicKeyRequest, GetUserPublicKeyResponse, LoginRequest,
+ LoginResponse, PakeLoginRequest as PakeLoginRequestStruct,
PakeLoginResponse as PakeLoginResponseStruct, RegistrationRequest,
RegistrationResponse, VerifyUserTokenRequest, VerifyUserTokenResponse,
WalletLoginRequest as WalletLoginRequestStruct,
@@ -396,6 +397,14 @@
let response = Response::new(GetUserPublicKeyResponse { public_key });
Ok(response)
}
+
+ #[instrument(skip(self))]
+ async fn delete_user(
+ &self,
+ _request: Request<DeleteUserRequest>,
+ ) -> Result<Response<DeleteUserResponse>, Status> {
+ unimplemented!();
+ }
}
async fn put_token_helper(
diff --git a/shared/protos/identity.proto b/shared/protos/identity.proto
--- a/shared/protos/identity.proto
+++ b/shared/protos/identity.proto
@@ -18,6 +18,8 @@
// and device ID
rpc GetUserPublicKey(GetUserPublicKeyRequest) returns
(GetUserPublicKeyResponse) {}
+
+ rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse) {}
}
// Helper types
@@ -153,3 +155,17 @@
message GetUserPublicKeyResponse {
string publicKey = 1;
}
+
+// DeleteUser
+message DeleteUserRequest {
+ string userID = 1;
+}
+
+message DeleteUserResponse {
+ enum DeleteResult {
+ SUCCESS = 0;
+ FAILURE = 1;
+ }
+
+ DeleteResult deleteResult = 1;
+}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 11:23 PM (18 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679168
Default Alt Text
D6788.id22751.diff (2 KB)

Event Timeline