keycloak / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
Apache License 2.0
648 stars 317 forks source link

Add priority field support in authentication flow executions #970

Open gim- opened 5 months ago

gim- commented 5 months ago

Allows to declaratively define authentication flow execution and subflow priority in Keycloak 25 onwards.

Additionally I've removed raisePriority/lowerPriority functions as they don't seem to be used anywhere.

Fixes #296

gim- commented 5 months ago

Test run in GitHub actions appears to be flaky.

berni2288 commented 4 months ago

Hey, is there anything that blocks this PR from being merged? If I understood it right, the Github action test is just buggy.

gim- commented 4 months ago

@berni2288 The project is not maintained unfortunately - https://github.com/mrparkers/terraform-provider-keycloak/issues/964

ToniA commented 1 week ago

@gim- Any chance you could publish your build into Terraform registry?

Just banging my head against the wall with this priority mess...

oysteinhauan commented 4 days ago

Thanks, we need this desperately. As a temporary solution we have done the following:

  1. Fork terraform-provider-keycloak repo and fetch this branch from @gim- 's fork.
  2. Run make build, or go build -o terraform-provider-keycloak_v5.0.0-priority
  3. Place the executable in your plugin-path, e.g. /Users/username/.terraform.d/plugins/registry.terraform.io/mrparkers/keycloak/5.0.0-priority/
  4. Create a .terraformrc file with the following content:
provider_installation {
    filesystem_mirror {
        path = "/Users/username/.terraform.d/plugins"
        include = ["registry.terraform.io/mrparkers/keycloak"]
    }
    direct {
        exclude = ["registry.terraform.io/mrparkers/keycloak"]
    }
}

This tells terraform to not fetch mrparkers/keycloak from the registry, but from your local path.

  1. Set the provider version in terraform to 5.0.0-priority (or whatever version name you have chosen)
  2. Run terraform init -upgrade.

Hope this can help!