crossplane-contrib / provider-keycloak

Apache License 2.0
21 stars 11 forks source link

idpmapper resource and samlclient resources #77

Closed denniskniep closed 5 months ago

denniskniep commented 6 months ago

Description of your changes

Adds the Resources:

I have the following question: keycloak_custom_identity_provider_mapper has the property identity_provider_alias. But it can be either of type keycloak_saml_identity_provider or keycloak_oidc_identity_provider. How can we add this as a reference?

func Configure(p *config.Provider) {
    p.AddResourceConfigurator("keycloak_custom_identity_provider_mapper", func(r *config.Resource) {
        r.ShortGroup = Group
        r.References["realm"] = config.Reference{
            Type: "github.com/crossplane-contrib/provider-keycloak/apis/realm/v1alpha1.Realm",
        }
        r.References["identityProviderAlias"] = config.Reference{
            Type: "???",
        }
    })
}

I have:

FYI: I had problems running linter with version due to this bug. Therefore I used version v1.57.1

How has this code been tested

With Keycloak runing inside K8s

Breee commented 5 months ago

thx alot!

should be available shortly in v0.15.0

Breee commented 5 months ago

And regarding your question, i think you need to open an issue here: https://github.com/mrparkers/terraform-provider-keycloak such that we can define a keycloak_generic_identity_provider.

Similar to https://github.com/mrparkers/terraform-provider-keycloak/issues/813 - i never got an answer there tho