Closes https://github.com/keycloak/keycloak/issues/21394
Closes https://github.com/keycloak/keycloak/issues/20265