forked from baron/baron-sso
Implement tenant import and RP auto login policies
This commit is contained in:
@@ -273,6 +273,33 @@ test.describe("DevFront clients lifecycle", () => {
|
||||
).toHaveValue(jwksUri);
|
||||
});
|
||||
|
||||
test("auto login settings are stored in client metadata", async ({ page }) => {
|
||||
const autoLoginUrl = "https://rp.example.com/login?auto=1";
|
||||
const state = {
|
||||
clients: [makeClient("client-auto-login", { name: "Auto Login app" })],
|
||||
consents: [] as Consent[],
|
||||
auditLogsByCursor: undefined,
|
||||
};
|
||||
await installDevApiMock(page, state);
|
||||
|
||||
await page.goto("/clients/client-auto-login/settings");
|
||||
|
||||
await page
|
||||
.getByRole("switch", { name: /자동 로그인 지원|Auto Login/i })
|
||||
.click();
|
||||
await page
|
||||
.getByPlaceholder(/https:\/\/app\.example\.com\/login\?auto=1/i)
|
||||
.fill(autoLoginUrl);
|
||||
await page.getByRole("button", { name: /^저장$|^Save$/i }).click();
|
||||
|
||||
await expect
|
||||
.poll(() => state.clients[0]?.metadata?.auto_login_supported)
|
||||
.toBe(true);
|
||||
await expect
|
||||
.poll(() => state.clients[0]?.metadata?.auto_login_url)
|
||||
.toBe(autoLoginUrl);
|
||||
});
|
||||
|
||||
test("pkce headless login blocks save when parsed jwks algorithm is unsupported", async ({
|
||||
page,
|
||||
}) => {
|
||||
|
||||
Reference in New Issue
Block a user