forked from baron/baron-sso
Format orgfront code check targets
This commit is contained in:
@@ -21,13 +21,16 @@ test("orgfront login auto parameter starts OIDC authorization", async ({
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
await page.route("http://localhost:5000/oidc/oauth2/auth**", async (route) => {
|
await page.route(
|
||||||
|
"http://localhost:5000/oidc/oauth2/auth**",
|
||||||
|
async (route) => {
|
||||||
authorizationURL = route.request().url();
|
authorizationURL = route.request().url();
|
||||||
await route.fulfill({
|
await route.fulfill({
|
||||||
contentType: "text/html",
|
contentType: "text/html",
|
||||||
body: "<!doctype html><title>Authorization captured</title>",
|
body: "<!doctype html><title>Authorization captured</title>",
|
||||||
});
|
});
|
||||||
});
|
},
|
||||||
|
);
|
||||||
|
|
||||||
await page.goto("/login?auto=1&returnTo=%2Fpicker");
|
await page.goto("/login?auto=1&returnTo=%2Fpicker");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user