Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mock session-iframe instead of changing the frontend for runtime #46

Open
rthaenert opened this issue Feb 3, 2022 · 2 comments
Open

Comments

@rthaenert
Copy link

In the docs the problem with the session status iframe is mentioned.

Besides from changing the frontend only for testing it is also possible to just provide a fake response for the iframe:

        cy.intercept(`<yourKeycloakInstance>/login-status-iframe.html`,
            {body: '<html><body><script>window.addEventListener("message", 
             (event) => {event.source.postMessage(\'unchanged\', event.origin);}, false);</script></body></html>'});

(see https://openid.net/specs/openid-connect-session-1_0.html#RPiframe)

I'm currently using this to avoid changing the frontend config only for testing.
That could be one possible fix for issues like issue #23.

Happy to provide a PR if this is helpful.

@jdtully
Copy link

jdtully commented Feb 3, 2022 via email

@rthaenert
Copy link
Author

I would be glad to provide a PR but currently there are many open Pull Requests which are not looked at.
Let's wait a bit and see whether this project is still maintained or if someone creates a fork and picks it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants