forked from baron/baron-sso
org chart 자동로그인 보완. seed-tenant 삭제불가 조치
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { expect, test, type Page } from "@playwright/test";
|
||||
import { type Page, expect, test } from "@playwright/test";
|
||||
|
||||
async function stubOidcAuthorization(page: Page) {
|
||||
let authorizationURL = "";
|
||||
@@ -35,20 +35,13 @@ async function stubOidcAuthorization(page: Page) {
|
||||
};
|
||||
}
|
||||
|
||||
test("orgfront login defaults to OIDC authorization", async ({ page }) => {
|
||||
test("orgfront login waits for explicit auto parameter", async ({ page }) => {
|
||||
const oidc = await stubOidcAuthorization(page);
|
||||
|
||||
await page.goto("/login");
|
||||
await page.waitForTimeout(500);
|
||||
|
||||
await expect.poll(oidc.authorizationURL).toContain("/oauth2/auth");
|
||||
|
||||
const parsed = new URL(oidc.authorizationURL());
|
||||
expect(parsed.searchParams.get("client_id")).toBe("orgfront");
|
||||
expect(parsed.searchParams.get("redirect_uri")).toBe(
|
||||
"http://localhost:5175/auth/callback",
|
||||
);
|
||||
expect(parsed.searchParams.get("response_type")).toBe("code");
|
||||
expect(parsed.searchParams.get("scope") ?? "").toContain("openid");
|
||||
expect(oidc.authorizationURL()).toBe("");
|
||||
});
|
||||
|
||||
test("orgfront login auto parameter starts OIDC authorization", async ({
|
||||
|
||||
Reference in New Issue
Block a user