Replies: 7 comments 1 reply
-
This is incredibly unhelpful community! RedHat/Keycloack - Never more! |
Beta Was this translation helpful? Give feedback.
-
Did you try with 2.17.6? |
Beta Was this translation helpful? Give feedback.
-
Because hawtio 2.17.5 was using Karaf 4.3.x while 2.17.6 is using 4.4.x like your configuration |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. With configuration bellow, the authentiaction throught keycloak is working with direct-access, but i had to set hawtio.keycloakEnabled to false. feature:repo-add mvn:org.ops4j.pax.keycloak/pax-keycloak-features/0.2.0/xml/features echo "hawtio.keycloakEnabled = false" >> /opt/karaf/etc/system.properties cat > /opt/karaf/etc/keycloak-direct-access.json <<EOF |
Beta Was this translation helpful? Give feedback.
-
I'm not actively working on hawtio, so it was just an idea. |
Beta Was this translation helpful? Give feedback.
-
@ondrejmrekaj If you set We are focusing on Spring Boot and Quarkus support, so it's getting harder and harder to covert Karaf support. |
Beta Was this translation helpful? Give feedback.
-
I tried it with older version of hawtio, with flag hawtio=enable. |
Beta Was this translation helpful? Give feedback.
-
I am trying to integrate keycloak into the Apache Karaf environment. I follow https://hawt.io/docs/keycloak-integration/ with importing https://github.com/hawtio/hawtio/tree/3.x/examples/keycloak-integration
But I ran into a problem with keycloak-direct-access.
Apache karaf logs:
2023-07-27T15:55:54,561 | WARN | qtp2034224808-237 | DirectAccessGrantsLoginModule | 161 - org.ops4j.pax.keycloak.pax-keycloak-core - 0.2.0 | Login failed. Invalid status: 401, OAuth2 error. Error: invalid_grant, Error description: Invalid user credentials
Keycloak logs:
2023-07-27 13:44:33,558 WARN [org.keycloak.events] (executor-thread-23) type=LOGIN_ERROR, realmId=hawtio-demo, clientId=ssh-jmx-admin-client, userId=d9f6415f-f7c7-4ab0-8b15-b5cff2be9d7c, ipAddress=172.21.51.171, error=invalid_user_credentials, auth_method=openid-connect, grant_type=password, client_auth_method=client-secret, username=token, authSessionParentId=b33689a7-d56d-48b4-a77a-2fc2d803bada, authSessionTabId=QSjdXgwtQIw
Why username=token?
Hawtio version: 2.17.5
Karaf version: 4.4.3
Keycloak version: 21.1.2
I will be grateful for any advice.
Beta Was this translation helpful? Give feedback.
All reactions