I'm using Keycloak 21.0.1 and encountered an issue while trying to limit the number of sessions per user by creating a new flow. However, the authentication gets completely blocked by this new flow, and when attempting to delete it, I encounter the following problem:
Uncaught server error: org.keycloak.models.ModelException: Cannot remove authentication flow, it is currently in use
at org.keycloak.models.jpa.RealmAdapter.removeAuthenticationFlow(RealmAdapter.java:1605)
at org.keycloak.models.cache.infinispan.RealmAdapter.removeAuthenticationFlow(RealmAdapter.java:1316)
I've tried to locate where it is linked, but it seems no client is associated with this flow. Oddly, it's not marked as "unsed" I'm attaching a screenshot of my flows table for reference. If anyone has encountered a similar issue or has insights, I'd greatly appreciate discussing it.