I am trying to set the client registration policies at the realm level at "Realm -> Realm Settings -> Client Registration -> Client Registration Policies"
At the beginning I thought I can use data source to bind the existing policy (i.e: "Trusted Hosts") and just add the extra url I need. But didn't find any supported data source for that.
Then I tried to create a new client policy with keycloak_openid_client_client_policy but from the documentation, it requires a list of clients. But I don't want to set a list of client as we want to allow trusted third (base on the policy) to be able to create dynamically client in the dedicated realm we set up.
I also tried to create a dummy client to tested out the keycloak_openid_client_client_policy.
But I got an ERROR [o.k.s.e.KeycloakErrorHandler:65] (executor-thread-3283) Uncaught server error: java.lang.NullPointerException. The log didn't tell me much about what is wrong.
Is there anything I missed. Or I am on the wrong direction? Does the current version of terraform provider supports the settings I mention in the screenshot?
Hi,
I am trying to set the client registration policies at the realm level at "Realm -> Realm Settings -> Client Registration -> Client Registration Policies"
I tried to find the resource name corresponding for what I want to do here https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs/resources/openid_client_client_policy
At the beginning I thought I can use data source to bind the existing policy (i.e: "Trusted Hosts") and just add the extra url I need. But didn't find any supported data source for that. Then I tried to create a new client policy with keycloak_openid_client_client_policy but from the documentation, it requires a list of clients. But I don't want to set a list of client as we want to allow trusted third (base on the policy) to be able to create dynamically client in the dedicated realm we set up.
I also tried to create a dummy client to tested out the keycloak_openid_client_client_policy.
But I got an
ERROR [o.k.s.e.KeycloakErrorHandler:65] (executor-thread-3283) Uncaught server error: java.lang.NullPointerException
. The log didn't tell me much about what is wrong.Is there anything I missed. Or I am on the wrong direction? Does the current version of terraform provider supports the settings I mention in the screenshot?
Thanks for your advices. Phung