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

hawtio-auth-keycloak doesn't show any error when trying to log in in insecure context with keycloak #1328

Open
mmuzikar opened this issue Jan 31, 2025 · 0 comments
Assignees

Comments

@mmuzikar
Copy link
Contributor

mmuzikar commented Jan 31, 2025

When hawtio is running in an http mode (not localhost) and user logs in via keycloak they get redirected to "normal" Hawtio login page. Which causes some confusion leaving the user thinking that they must've not configured the application correctly, however in the console there's an error message:


[hawtio-auth-keycloak] Failed to initialise Keycloak: Error: Web Crypto API is not available.
    m http://172.17.0.1:8080/hawtio/static/js/4240.1d53be00.chunk.js:2
    createLoginUrl http://172.17.0.1:8080/hawtio/static/js/4240.1d53be00.chunk.js:2
    login http://172.17.0.1:8080/hawtio/static/js/4240.1d53be00.chunk.js:2
    login http://172.17.0.1:8080/hawtio/static/js/4240.1d53be00.chunk.js:2
    t http://172.17.0.1:8080/hawtio/static/js/4240.1d53be00.chunk.js:2
    d http://172.17.0.1:8080/hawtio/static/js/4240.1d53be00.chunk.js:2
    m http://172.17.0.1:8080/hawtio/static/js/4240.1d53be00.chunk.js:2
4240.1d53be00.chunk.js:2:4215134

If possible there should be some toast notification saying that keycloak login doesn't work in insecure contexts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

2 participants