aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Anshul Gupta <ansg191@anshulg.com> 2024-08-06 17:20:45 -0700
committerGravatar GitHub <noreply@github.com> 2024-08-06 17:20:45 -0700
commit0a5cc39b5223e4301bc67e1e1b4bcd1f23574b46 (patch)
tree653f0e853413626a974fb1aa73f5ec060c62f244
parent530c3289341599203d0d9a81d16d0648173d1c40 (diff)
parentdbcd3c48091e0d2ab0c2050ed8bf369502c1f8bc (diff)
downloadibd-trader-0a5cc39b5223e4301bc67e1e1b4bcd1f23574b46.tar.gz
ibd-trader-0a5cc39b5223e4301bc67e1e1b4bcd1f23574b46.tar.zst
ibd-trader-0a5cc39b5223e4301bc67e1e1b4bcd1f23574b46.zip
Merge pull request #6 from ansg191/add-auth-user
-rw-r--r--api/proto/idb/user/v1/user.proto9
1 files changed, 9 insertions, 0 deletions
diff --git a/api/proto/idb/user/v1/user.proto b/api/proto/idb/user/v1/user.proto
index d2048a8..8a2f0bc 100644
--- a/api/proto/idb/user/v1/user.proto
+++ b/api/proto/idb/user/v1/user.proto
@@ -22,6 +22,7 @@ service UserService {
rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse);
rpc CheckIBDUsername(CheckIBDUsernameRequest) returns (CheckIBDUsernameResponse);
+ rpc AuthenticateUser(AuthenticateUserRequest) returns (AuthenticateUserResponse);
}
message CreateUserRequest {
@@ -56,3 +57,11 @@ message CheckIBDUsernameRequest {
message CheckIBDUsernameResponse {
bool exists = 1;
}
+
+message AuthenticateUserRequest {
+ string subject = 1;
+}
+
+message AuthenticateUserResponse {
+ bool authenticated = 1;
+}