I have configured a realm in an instance of Keycloak that I started from the command line. I’ve exported that realm using the “partial export” functionality in the admin UI. I am now trying to import that realm into a KC instance managed by Quarkus Dev services. Despite the version number being the same for both instances of KC, I get an error like this:
2023-01-09 14:25:34,646 ERROR [io.qua.oid.dep.dev.key.KeycloakDevServicesProcessor] (build-3) Realm realm-export.json resource can not be opened: Unrecognized field “otpPolicyCodeReusable” (class org.keycloak.representations.idm.RealmRepresentation), not marked as ignorable (135 known properties: “userFederationMappers”, “rememberMe”, “duplicateEmailsAllowed”, “adminEventsDetailsEnabled”, “users”, “clientOfflineSessionMaxLifespan”, “webAuthnPolicyRequireResidentKey”, “webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister”, “components”, “otpPolicyType”, “accessCodeLifespanUserAction”, “id”, “webAuthnPolicyAttestationConveyancePreference”, “enabledEventTypes”, “applications”, “webAuthnPolicyPasswordlessSignatureAlgorithms”, “eventsListeners”, “ssoSessionMaxLifespanRememberMe”, “defaultDefaultClientScopes”, “webAuthnPolicyPasswordlessCreateTimeout”, “clientOfflineSessionIdleTimeout”, “notBefore”, “publicKey”, “smtpServer”, “clientPolicies”, “resetPasswordAllowed”, “webAuthnPolicyAvoidSameAuthenticatorRegister”, “accessTokenLifespanForImplicitFlow”, “webAuthnPolicyPasswordlessUserVerificationRequirement”, “clientScopes”, “internationalizationEnabled”, “defaultRole”, “accessTokenLifespan”, “passwordCredentialGrantAllowed”, “federatedUsers”, “applicationScopeMappings” [truncated]])
at [Source: (BufferedInputStream); line: 459, column: 34] (through reference chain: org.keycloak.representations.idm.RealmRepresentation[“otpPolicyCodeReusable”])
And my realm refuses to import. Any ideas why?