Skip to content
Snippets Groups Projects
Commit a1db1c55 authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

chore: Добавлен метод Users.Login

parent 95771b2d
No related branches found
No related tags found
1 merge request!67Добавлен метод Users.Login
......@@ -29,6 +29,15 @@ message Filter {
google.protobuf.BoolValue system = 10;
}
message LoginRequest {
string email = 1;
string identity = 2;
}
message LoginResponse {
User user = 1;
}
message CreateRequest {
User create = 1;
}
......@@ -73,7 +82,14 @@ message GetByIdentityResponse {
User user = 1;
}
service Users {
// Метод для авторизации пользователя. Возвращает информацию о пользователе
// Пользователь может быть авторизован в разных системах IdP, поэтому
// авторизация происходит по email и identity. Если для одного email есть
// несколько identity, то они будут объединены в одного пользователя
rpc Login(LoginRequest) returns(LoginResponse) {}
// Создание пользователя или регистрация текущего пользователя в системе, если create.id == `current`
rpc Create(CreateRequest) returns(CreateResponse) {}
......
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