adorsys / adorsys/keycloak-config-cli

Normalize on v26.x doesn't support 'identityProvider.types'

Ouverte
#1,665 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Java
Étoiles
1.2k
Forks
200
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### Current Behavior

Error:
```
Unable to parse file 'file:realm-config.json': Unrecognized field "types" (class org.keycloak.representations.idm.IdentityProviderRepresentation), not marked as ignorable (17 known properties: "enabled", "firstBrokerLoginFlowAlias", "trustEmail", "linkOnly", "hideOnLogin", "providerId", "displayName", "organizationId", "alias", "postBrokerLoginFlowAlias", "addReadTokenRoleOnCreate", "authenticateByDefault", "internalId", "updateProfileFirstLogin", "updateProfileFirstLoginMode", "config", "storeToken")
at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: org.keycloak.representations.idm.RealmRepresentation["identityProviders"]->java.util.ArrayList[0]->org.keycloak.representations.idm.IdentityProviderRepresentation["types"])
```

realm-export.json
```
...

"identityProviders" : [ {
"types": [ "USER_AUTHENTICATION", "CLIENT_ASSERTION", "EXCHANGE_EXTERNAL_TOKEN", "JWT_AUTHORIZATION_GRANT" ]
} ],

...
```

Attempts:
I tried building from source & building the docker image to get this error
I tried modifying the keycloak-config-cli-import-schema.json to include this on line 1951
```
"types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Types (USER_AUTHENTICATION, CLIENT_ASSERTION, EXCHANGE_EXTERNAL_TOKEN, JWT_AUTHORIZATION_GRANT)"
}
```
I tried copy and pasting the latest IdentityProviderRepresentation.java into src/main/java/org/keycloak/representations/idm to get the jar in the /target folder with no luck

### Expected Behavior

NORMALIZATION_FILES_INPUTLOCATIONS=./realm-config.json NORMALIZATION_FILES_OUTPUTDIRECTORY=./output RUN_OPERATION="NORMALIZE" java -jar ./target/keycloak-config-cli.jar

Successful output

### Steps To Reproduce

```markdown
1. Map an identity provider with Keycloak v26.5.2
2. Export config from keycloak
3. Verify that identityProvider.types exists
4. Run normalize on that realm-config.json (docker or jar)
4. Get above error
```

### Deployment Method

Docker

### Environment

- Keycloak Version: v26.5.2
- keycloak-config-cli Version: main
- Java version:
openjdk 26.0.1 2026-04-21
OpenJDK Runtime Environment Homebrew (build 26.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 26.0.1, mixed mode, sharing)

### Relevant configuration (sanitized)

```yaml

```

### Logs / error output

```shell

```

### Anything else?

_No response_

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.