Author SHA1 Message Date
jiang abef9ffabf fix: bypass blocked Keycloak session iframe
Generic Container CI/CD / test-build-publish (push) Successful in 1m1s
Frontend CI/CD / build-test-publish-and-deploy (push) Successful in 1m31s
2026-08-19 18:12:21 +08:00
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ describe("Keycloak authentication", () => {
expect(client.init).toHaveBeenCalledWith({ expect(client.init).toHaveBeenCalledWith({
onLoad: "login-required", onLoad: "login-required",
flow: "standard", flow: "standard",
pkceMethod: "S256" pkceMethod: "S256",
checkLoginIframe: false
}); });
expect(authentication.user).toEqual({ expect(authentication.user).toEqual({
name: "张调度", name: "张调度",
+2 -1
View File
@@ -59,7 +59,8 @@ export async function initializeAuthentication(
const authenticated = await keycloak.init({ const authenticated = await keycloak.init({
onLoad: "login-required", onLoad: "login-required",
flow: "standard", flow: "standard",
pkceMethod: "S256" pkceMethod: "S256",
checkLoginIframe: false
}); });
if (!authenticated) { if (!authenticated) {