Closed johnaohara closed 3 months ago
Describe the bug
In dev mode, using horreum.roles.provider=keycloak, KeycloakUserBackend is using the incorrect realm to retrieve users/roles.
horreum.roles.provider=keycloak
KeycloakUserBackend
The KeycloakUserBackend is using quarkus.keycloak.admin-client.realm ; https://github.com/Hyperfoil/Horreum/blob/b955bde0dce8d6eb160c55b5c7441c64141f41b3/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/user/KeycloakUserBackend.java#L46
quarkus.keycloak.admin-client.realm
in dev mode this is set to the master realm;
master
https://github.com/Hyperfoil/Horreum/blob/b955bde0dce8d6eb160c55b5c7441c64141f41b3/horreum-backend/src/main/resources/application.properties#L114
fixed in #1708
Describe the bug
In dev mode, using
horreum.roles.provider=keycloak
,KeycloakUserBackend
is using the incorrect realm to retrieve users/roles.The
KeycloakUserBackend
is usingquarkus.keycloak.admin-client.realm
; https://github.com/Hyperfoil/Horreum/blob/b955bde0dce8d6eb160c55b5c7441c64141f41b3/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/user/KeycloakUserBackend.java#L46in dev mode this is set to the
master
realm;https://github.com/Hyperfoil/Horreum/blob/b955bde0dce8d6eb160c55b5c7441c64141f41b3/horreum-backend/src/main/resources/application.properties#L114