Skip to content

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

Open
@mmuzikar

Description

@mmuzikar

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.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status

    Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions