fix: bypass blocked Keycloak session iframe
This commit is contained in:
@@ -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: "张调度",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user