This PR fixes a bug where identityProviders without a displayName can't be updated (and probably not deleted).
The field is optional by keycloak (e.g. for so called "social identity providers" like LinkedIn) and should therefore also be optional internally.
Reproduction:
Create an identityProvider without displayName field (e.g. LinkedIn).
Update the identityProvider:
- updateIdentityProvider:
alias: google
config:
clientId: test
clientSecret: test
Results in:
Exception in thread "main" feign.FeignException: Instantiation of [simple type, class de.klg71.keycloakmigration.keycloakapi.model.IdentityProvider] value failed for JSON property displayName due to missing (therefore NULL) value for creator parameter displayName which is a non-nullable type
Hey there!
This PR fixes a bug where identityProviders without a displayName can't be updated (and probably not deleted).
The field is optional by keycloak (e.g. for so called "social identity providers" like LinkedIn) and should therefore also be optional internally.
Reproduction:
Results in:
Exception in thread "main" feign.FeignException: Instantiation of [simple type, class de.klg71.keycloakmigration.keycloakapi.model.IdentityProvider] value failed for JSON property displayName due to missing (therefore NULL) value for creator parameter displayName which is a non-nullable type