You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Configure dev service user like so quarkus.keycloak.devservices.users.myUser=myUser
Enable keycloak dev service logs
Try to get access token during test for user using new io.quarkus.test.keycloak.client.KeycloakTestClient
The text was updated successfully, but these errors were encountered:
HerrDerb
changed the title
Since Keycloak 24 dev service config based realms have "required actions" enabled, thus preventing access token retrieval
Since Keycloak 24 required action "very profile" is enabled by default, thus preventing to get access token with KeycloakTestClient from dev service
Aug 14, 2024
HerrDerb
changed the title
Since Keycloak 24 required action "very profile" is enabled by default, thus preventing to get access token with KeycloakTestClient from dev service
Since Keycloak 24 required action "very profile" is enabled by default, preventing access token retrieval from dev service
Aug 14, 2024
HerrDerb
changed the title
Since Keycloak 24 required action "very profile" is enabled by default, preventing access token retrieval from dev service
Since Keycloak 24 required action "verify profile" is enabled by default, preventing access token retrieval from dev service
Aug 14, 2024
@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:
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
The text was updated successfully, but these errors were encountered: