Open PiyushRaj02 opened 1 year ago
We have same issues. Generally we have the same keycloak_authentication_flow :reset_credentials_otp_required
.
Keycloak Version - 20.0.3 Keycloak Provider Version - 4.2.0
resource "keycloak_authentication_flow" "reset_credentials_otp_required" {
realm_id = keycloak_realm.tenant-realm.id
alias = "reset-credentials-otp-required"
}
and the bindings:
resource "keycloak_authentication_bindings" "browser_authentication_binding" {
depends_on = [
keycloak_authentication_flow.reset_credentials_otp_required
]
realm_id = keycloak_realm.tenant-realm.id
reset_credentials_flow = keycloak_authentication_flow.reset_credentials_otp_required.alias
}
We have set the depends_on correctly, but it seems the keycloak terrafrom doesn't remove the bindings before remove keycloak_authentication_flow
.
That's why we see the error message in log:
Uncaught server error: org.keycloak.models.ModelException: Cannot remove authentication flow, it is currently in use
Do we have any update on this issue?
Is anyone looking into this issue?
Keycloak Version - 20.0.3 Keycloak Provider Version - 4.2.0
module.keycloak.keycloak_authentication_flow.reset_credentials_otp_required will be destroyed
resource "keycloak_authentication_flow" "reset_credentials_otp_required" {
module.keycloak.keycloak_realm.tenant-realm will be destroyed
resource "keycloak_realm" "tenant-realm" {
}
Plan: 0 to add, 0 to change, 2 to destroy. module.keycloak.keycloak_authentication_flow.reset_credentials_otp_required: Destroying... [id=96763815-8b93-4706-9dc7-fc57539483fc]
Error: error sending DELETE request to /admin/realms/987730/authentication/flows/96763815-8b93-4706-9dc7-fc57539483fc: 500 Internal Server Error. Response body: {"error":"unknown_error"}