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

Cypress Examples without DOM #24

Open
yanfali opened this issue Nov 9, 2021 · 0 comments
Open

Cypress Examples without DOM #24

yanfali opened this issue Nov 9, 2021 · 0 comments

Comments

@yanfali
Copy link

yanfali commented Nov 9, 2021

Fantastic project, this is great place to study for new comers to keycloak. I was wondering, would it be possible to get an official set of examples of how to login to keycloak without using the DOM? There are two projects that currently provide NPM libraries, but both seem to have stopped working with Chrome 94 and both projects seem to have been abandoned.

So the use case is, you want to test a public client JS application, not the authentication flow, using cypress, so you hit the auth end point programmatically and it sets the appropriate tokens and what not in the session. My suspicion is it doesn't work because of the hidden iframe method that keycloak.js uses to maintain it's auth session, but I'm not sure how it works and it's deeply integrated into the keycloak java project, so it's not easy to figure it out.

The two projects that no longer seem to work are:

https://www.npmjs.com/package/cypress-keycloak-commands
https://www.npmjs.com/package/cypress-keycloak

Thanks for any insight.

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

1 participant