update oauth

This commit is contained in:
lendry
2026-06-25 14:23:55 +03:00
parent c3e06e03cf
commit 1796008a28
21 changed files with 340 additions and 64 deletions

View File

@@ -185,6 +185,9 @@ message PublicUser {
bool canViewUsers = 19;
bool canViewUserDocuments = 20;
bool hasPassword = 21;
bool canViewOAuth = 22;
bool canManageAllOAuth = 23;
bool canManageAllUsers = 24;
}
message AuthTokens {

View File

@@ -6,7 +6,7 @@ service RbacService {
rpc ListRoles (Empty) returns (ListRolesResponse);
rpc ListPermissions (Empty) returns (ListPermissionsResponse);
rpc ListOAuthScopes (Empty) returns (ListOAuthScopesResponse);
rpc ListOAuthClients (Empty) returns (ListOAuthClientsResponse);
rpc ListOAuthClients (ListOAuthClientsRequest) returns (ListOAuthClientsResponse);
rpc CreateRole (CreateRoleRequest) returns (Role);
rpc AssignUserRole (AssignUserRoleRequest) returns (AssignUserRoleResponse);
rpc RemoveUserRole (RemoveUserRoleRequest) returns (Empty);
@@ -47,6 +47,9 @@ message OAuthClient {
repeated string scopes = 5;
bool isActive = 6;
string type = 7;
optional string createdById = 8;
optional string createdByDisplayName = 9;
bool canManage = 10;
}
message OAuthClientDetail {
@@ -58,6 +61,9 @@ message OAuthClientDetail {
bool isActive = 6;
string type = 7;
optional string clientSecret = 8;
optional string createdById = 9;
optional string createdByDisplayName = 10;
bool canManage = 11;
}
message ListRolesResponse {
@@ -76,6 +82,10 @@ message ListOAuthClientsResponse {
repeated OAuthClient clients = 1;
}
message ListOAuthClientsRequest {
string actorUserId = 1;
}
message CreateRoleRequest {
string actorUserId = 1;
string slug = 2;