Closed HerrDerb closed 2 months ago
/cc @geoand (devservices), @pedroigor (keycloak), @radcortez (config), @sberyozkin (keycloak), @stuartwdouglas (devservices)
@HerrDerb As far as I recall, you use a custom image, right ? That was indeed the problem for updating to Keycloak 24, but it is not a Quarkus issue AFAIK. FYI, for the default dev service, this is what we had to do:
https://github.com/quarkusio/quarkus/pull/40662
As far as I recall, Pedro was also explaining you can disable it with the admin client API, using the UP config, etc
Have a look please, but IMHO we shuld close this issue
Adding --spi-user-profile-declarative-user-profile-config-file
looks like a solution for us 👍thanks you 🙂
Describe the bug
Since keycloak 24, it seems not possible anymore to get the access token to a configured dev service user with the KeycloakTestClient.
Config:
when trying to get the access token for a test api call, it will return
null
In the logs you find
I remember that since keycloak 24 the "verify profile" required action is enabled by default, which in this case probably prevents a successful login.
By setting the keycloak dev image to 23.x, everything works as expected. When using keycloak 24 or greater and pausing the test, disabling the "verify profile" required action before the login call, everything works as expected.
How to Reproduce?
With keycloak image 24.x or greater for dev service:
quarkus.keycloak.devservices.users.myUser=myUser
new io.quarkus.test.keycloak.client.KeycloakTestClient