update oauth
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user