remove imports ldapuserdata and paste ldap userdata from file
All checks were successful
Publish / Publish Job (push) Successful in 2m21s
All checks were successful
Publish / Publish Job (push) Successful in 2m21s
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lendry-erp/contracts",
|
"name": "@lendry-erp/contracts",
|
||||||
"version": "1.1.11",
|
"version": "1.1.10",
|
||||||
"description": "Protobuf definitions and generated TypeScript types",
|
"description": "Protobuf definitions and generated TypeScript types",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ package ldap_auth.v1;
|
|||||||
|
|
||||||
option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
|
option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
|
||||||
|
|
||||||
import "ldap.proto";
|
|
||||||
|
|
||||||
|
|
||||||
service LdapAuthService {
|
service LdapAuthService {
|
||||||
@@ -12,6 +11,18 @@ service LdapAuthService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message LdapUserData {
|
||||||
|
string dn = 1; // Полный путь в AD (Distinguished Name)
|
||||||
|
string username = 2; // Логин (sAMAccountName)
|
||||||
|
string display_name = 3; // ФИО (displayName)
|
||||||
|
string email = 4; // Почта (mail)
|
||||||
|
string description = 5; // Описание/Должность (description)
|
||||||
|
bytes avatar = 6; // Аватарка в байтах (thumbnailPhoto)
|
||||||
|
repeated string groups = 7; // Список групп
|
||||||
|
bool is_active = 8; // Статус аккаунта
|
||||||
|
string phone = 9;
|
||||||
|
}
|
||||||
|
|
||||||
// --- Авторизация ---
|
// --- Авторизация ---
|
||||||
message VerifyRequest {
|
message VerifyRequest {
|
||||||
string username = 1;
|
string username = 1;
|
||||||
@@ -21,6 +32,6 @@ message VerifyRequest {
|
|||||||
message VerifyResponse {
|
message VerifyResponse {
|
||||||
bool success = 1;
|
bool success = 1;
|
||||||
string error_message = 2;
|
string error_message = 2;
|
||||||
ldap.v1.UserData user = 3; // Отдаем полные данные при успешном входе
|
LdapUserData user = 3; // Отдаем полные данные при успешном входе
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user