From 181d3bdbee45f5041b39b15f8072053c41604b30 Mon Sep 17 00:00:00 2001 From: "menghaiwen@fusen.cn" Date: Mon, 29 Jan 2024 15:20:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9D=83=E9=99=90?= =?UTF-8?q?=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/ldap.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/service/ldap.proto b/service/ldap.proto index 31c3ce6..47ddfd3 100644 --- a/service/ldap.proto +++ b/service/ldap.proto @@ -57,7 +57,21 @@ service ldap { rpc SetLdapGroupAuth(SetLdapGroupAuthReq) returns (SetLdapGroupAuthRsp); //权限组授权--移除 rpc RemoveLdapGroupAuth(RemoveLdapGroupAuthReq) returns (RemoveLdapGroupAuthRsp); + + //验证权限组 + rpc VerifyAuthorityGroup(VerifyAuthorityGroupReq) returns (VerifyAuthorityGroupRsp); } +message VerifyAuthorityGroupReq { + string path = 1; + string method = 2; + string category = 3; + int64 group_id = 4; +} + +message VerifyAuthorityGroupRsp { + +} + message GetLdapGroupsReq { LdapGroupFilter filter = 1; From da83a92fc5e80e55512e4c0edc81361735e7a72a Mon Sep 17 00:00:00 2001 From: "menghaiwen@fusen.cn" Date: Mon, 29 Jan 2024 15:32:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/ldap.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/service/ldap.proto b/service/ldap.proto index 47ddfd3..a10640a 100644 --- a/service/ldap.proto +++ b/service/ldap.proto @@ -322,4 +322,5 @@ message LdapParseTokenRsp{ string UserDn = 1; int64 UserId = 2; string UserEmail = 3; + int64 group_id = 4; } \ No newline at end of file