forked from baron/baron-sso
린트 적용
This commit is contained in:
@@ -278,7 +278,9 @@ export async function deleteTenantGroup(id: string) {
|
||||
}
|
||||
|
||||
export async function addTenantToGroup(groupId: string, tenantId: string) {
|
||||
await apiClient.post(`/v1/admin/tenant-groups/${groupId}/tenants/${tenantId}`);
|
||||
await apiClient.post(
|
||||
`/v1/admin/tenant-groups/${groupId}/tenants/${tenantId}`,
|
||||
);
|
||||
}
|
||||
|
||||
export async function removeTenantFromGroup(groupId: string, tenantId: string) {
|
||||
@@ -326,9 +328,7 @@ export async function addGroupAdmin(groupId: string, userId: string) {
|
||||
}
|
||||
|
||||
export async function removeGroupAdmin(groupId: string, userId: string) {
|
||||
await apiClient.delete(
|
||||
`/v1/admin/tenant-groups/${groupId}/admins/${userId}`,
|
||||
);
|
||||
await apiClient.delete(`/v1/admin/tenant-groups/${groupId}/admins/${userId}`);
|
||||
}
|
||||
|
||||
// API Key Management (M2M)
|
||||
@@ -509,15 +509,10 @@ export async function updateRelyingParty(id: string, payload: HydraClientReq) {
|
||||
}
|
||||
|
||||
export async function deleteRelyingParty(id: string) {
|
||||
|
||||
await apiClient.delete(`/v1/admin/relying-parties/${id}`);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type RPOwner = {
|
||||
|
||||
subject: string;
|
||||
|
||||
name?: string;
|
||||
@@ -525,39 +520,24 @@ export type RPOwner = {
|
||||
email?: string;
|
||||
|
||||
type: string;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
export async function fetchRPOwners(clientId: string) {
|
||||
|
||||
const { data } = await apiClient.get<RPOwner[]>(
|
||||
|
||||
`/v1/admin/relying-parties/${clientId}/owners`,
|
||||
|
||||
);
|
||||
|
||||
return data;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
export async function addRPOwner(clientId: string, subject: string) {
|
||||
|
||||
await apiClient.post(`/v1/admin/relying-parties/${clientId}/owners/${subject}`);
|
||||
|
||||
await apiClient.post(
|
||||
`/v1/admin/relying-parties/${clientId}/owners/${subject}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
export async function removeRPOwner(clientId: string, subject: string) {
|
||||
|
||||
await apiClient.delete(
|
||||
|
||||
`/v1/admin/relying-parties/${clientId}/owners/${subject}`,
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user