terraform-provider-keycloak icon indicating copy to clipboard operation
terraform-provider-keycloak copied to clipboard

feat: add default client scope management on realm

Open Korsarro69 opened this issue 2 years ago • 2 comments

My project need to apply created client-scopes as default to automatically assign the client-scope to each newly created client

Korsarro69 avatar Jan 31 '22 07:01 Korsarro69

Hey @Korsarro69, thanks for submitting this PR. I'm just curious if you have tried the keycloak_openid_client_default_scopes resource for this use case, or if there was a reason why that didn't work for you.

I don't mind adding a resource for a single client scope, but we would probably want to make it clear in the docs why you might want to use one over the other.

mrparkers avatar Feb 01 '22 15:02 mrparkers

Hello, I'm sorry for the very late response. I needed to assign a client scope in default client scopes, but without link it to a client. The resource keycloak_openid_client_default_scopes required a client

Korsarro69 avatar Feb 22 '22 06:02 Korsarro69

Hi, we are also interested in this feature. This is not linked to a specific client, but is a realm level configuration. It has its own endpoint in the Keycloak api (that is used in this PR).

lebronnecf avatar Jan 17 '23 10:01 lebronnecf

Hi @mrparkers I agree, these options are not currently supported by the provider and is fixed by this PR, isn't it ?

image

@Korsarro69 If you rebase on top of master and push a new commit it will relaunch tests which where not able to run properly before :)

daviddelannoy avatar Jan 17 '23 10:01 daviddelannoy