1
0
forked from baron/baron-sso

i18n refresh and frontend fixes

This commit is contained in:
Lectom C Han
2026-02-10 19:15:51 +09:00
parent 390a349de6
commit 05cdc7d8ae
44 changed files with 8603 additions and 1760 deletions

View File

@@ -29,6 +29,7 @@ export type ClientEndpoints = {
export type ClientDetailResponse = {
client: ClientSummary & {
clientSecret?: string;
metadata?: Record<string, unknown>;
};
endpoints: ClientEndpoints;
@@ -93,7 +94,6 @@ export type IdpConfigCreateRequest = Omit<
export type IdpConfigUpdateRequest = Partial<IdpConfigCreateRequest>;
// --- End Federation Types ---
export async function fetchClients() {
const { data } = await apiClient.get<ClientListResponse>("/dev/clients");
return data;
@@ -138,7 +138,7 @@ export async function updateClient(
export async function rotateClientSecret(clientId: string) {
const { data } = await apiClient.post<ClientDetailResponse>(
`/dev/clients/${clientId}/secret/rotate`
`/dev/clients/${clientId}/secret/rotate`,
);
return data;
}
@@ -175,11 +175,13 @@ export async function listIdpConfigsForClient(clientId: string) {
return data;
}
export async function createIdpConfigForClient(payload: IdpConfigCreateRequest) {
export async function createIdpConfigForClient(
payload: IdpConfigCreateRequest,
) {
const { data } = await apiClient.post<IdpConfig>(
`/dev/clients/${payload.client_id}/idps`,
payload,
);
`/dev/clients/${payload.client_id}/idps`,
payload,
);
return data;
}