diff --git a/src/shared/auth/keycloak-auth.test.ts b/src/shared/auth/keycloak-auth.test.ts index 68e686c..ccf5966 100644 --- a/src/shared/auth/keycloak-auth.test.ts +++ b/src/shared/auth/keycloak-auth.test.ts @@ -40,7 +40,8 @@ describe("Keycloak authentication", () => { expect(client.init).toHaveBeenCalledWith({ onLoad: "login-required", flow: "standard", - pkceMethod: "S256" + pkceMethod: "S256", + checkLoginIframe: false }); expect(authentication.user).toEqual({ name: "张调度", diff --git a/src/shared/auth/keycloak-auth.ts b/src/shared/auth/keycloak-auth.ts index 2b7e70e..017e792 100644 --- a/src/shared/auth/keycloak-auth.ts +++ b/src/shared/auth/keycloak-auth.ts @@ -59,7 +59,8 @@ export async function initializeAuthentication( const authenticated = await keycloak.init({ onLoad: "login-required", flow: "standard", - pkceMethod: "S256" + pkceMethod: "S256", + checkLoginIframe: false }); if (!authenticated) {