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

Sample code compatibility with Keycloak v26+? #23

Open
bicpi opened this issue Nov 13, 2024 · 2 comments
Open

Sample code compatibility with Keycloak v26+? #23

bicpi opened this issue Nov 13, 2024 · 2 comments

Comments

@bicpi
Copy link

bicpi commented Nov 13, 2024

Hi, I'm following the code examples in the book but things might have changed in newer Keycloak version? I am using the latest version 26.

The frontend from chapter 2 starts but shows a white screen. From the console output I can see that the index.html cannot instantiate the Keycloak object because the class does not exist.

I guess the class should come from KC_URL/js/keycloak.js file loaded in the HTML head of the index.html but this file does not exist in Keycloak which gives a 404 there.

Do you may have a hint or updated examples to get this working?
Thanks a lot!

@jose1003
Copy link

With this version is working: docker run -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -p 8080:8080 quay.io/keycloak/keycloak:22.0.0 start-dev
, I am trying to find where is the file in the latest version of keycloak

@bicpi
Copy link
Author

bicpi commented Nov 25, 2024

Yes, thanks, I used version 22 then to follow the examples in the book and it worked fine :-)

An idea might be to create a branch for a later Keycloak version(s) when the there are significant changes.

Thanks!

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

No branches or pull requests

2 participants