-
Notifications
You must be signed in to change notification settings - Fork 377
fix: Align flow config of OIDC clients with Keycloak defaults #1287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: Align flow config of OIDC clients with Keycloak defaults #1287
Conversation
|
@thomas-VIGINUM It looks like you didnt hit the correct defaults e.g. standard flow is enabled by default. |
|
Hey @sschu, Concerning to the Terraform documentation page, all variables mentioned default to false, even the standard flow. And I think it is nice to keep as the documentation states : by default all flows are disabled, and you have to explicitly enable on your code the different flows. terraform-provider-keycloak/docs/resources/openid_client.md Lines 130 to 133 in d06f0b9
|
|
What the documentation says is wrong because the provider is currently just using the Keycloak defaults - which has standard flow enabled. That's why the tests are failing. |
2a26a1b to
6f0aeb2
Compare
|
I created an issue for this #1325 think we should indeed fix this. |
|
@thomas-VIGINUM thanks for your PR! Would you mind rebasing it to latest main and add your DCO (git commit -s ...)? |
|
With the change from this PR the OIDC client example configuration works correctly: |
|
... just tried to run the tests locally, as @sschu already wrote this change breaks many tests. I think we have to think a bit more about how we can solve this. |
Current problem
The
keycloak_openid_clientresource documentation states some arguments defaults, especially on the flow definition. However, those attributes are computed instead of defaulted.Changes
Move some arguments from
ComputedtoDefault.