1
0
forked from baron/baron-sso

fix(headless-login): show parsed jwks n preview

- reproduce the missing n preview with the actual parsedKeys response shape
- read nPreview from DevFront instead of the old n field
- keep the preview text as provided by backend summaries
This commit is contained in:
Lectom C Han
2026-04-01 18:41:35 +09:00
parent 9facd24a00
commit e2379658c2
4 changed files with 6 additions and 11 deletions

View File

@@ -149,7 +149,8 @@ test.describe("DevFront clients lifecycle", () => {
kty: "RSA",
use: "sig",
alg: "RS256",
n: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
nPreview:
"voVbHlo_UHkj...Hb8PiTCQ",
},
],
},
@@ -229,7 +230,7 @@ test.describe("DevFront clients lifecycle", () => {
await expect(page.getByText(algorithm, { exact: true }).last()).toBeVisible();
}
await expect(
page.getByText("abcdefghij...0123456789", { exact: true }),
page.getByText("voVbHlo_UHkj...Hb8PiTCQ", { exact: true }),
).toBeVisible();
await expect(
page.getByRole("button", { name: /refresh|새로고침/i }),

View File

@@ -33,7 +33,7 @@ export type Client = {
kty?: string;
use?: string;
alg?: string;
n?: string;
nPreview?: string;
}>;
};
metadata?: Record<string, unknown>;