Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized field "maxTemporaryLockouts" #1225

Open
sdmorel opened this issue Dec 5, 2024 · 1 comment
Open

Unrecognized field "maxTemporaryLockouts" #1225

sdmorel opened this issue Dec 5, 2024 · 1 comment
Labels

Comments

@sdmorel
Copy link

sdmorel commented Dec 5, 2024

Current Behavior

When I try to import an example realm taken from the examples 00_create_realm_with_federation.json the KeycloakConfigApplication returns this error:

2024-12-05T13:49:58.264Z ERROR 1 --- [           main] d.a.k.config.KeycloakConfigRunner        : jakarta.ws.rs.ProcessingException: com.fasterxml.jackson.da
tabind.exc.UnrecognizedPropertyException: Unrecognized field "maxTemporaryLockouts" (class org.keycloak.representations.idm.RealmRepresentation), not marked
as ignorable (139 known properties: "userFederationMappers", "rememberMe", "duplicateEmailsAllowed", "adminEventsDetailsEnabled", "users", "clientOfflineSess
ionMaxLifespan", "webAuthnPolicyRequireResidentKey", "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister", "components", "otpPolicyType", "accessCodeLi
fespanUserAction", "id", "webAuthnPolicyAttestationConveyancePreference", "enabledEventTypes", "applications", "webAuthnPolicyPasswordlessSignatureAlgorithms
", "eventsListeners", "ssoSessionMaxLifespanRememberMe", "defaultDefaultClientScopes", "webAuthnPolicyPasswordlessCreateTimeout", "clientOfflineSessionIdleTi
meout", "notBefore", "publicKey", "smtpServer", "clientPolicies", "resetPasswordAllowed", "webAuthnPolicyAvoidSameAuthenticatorRegister", "accessTokenLifespa
nForImplicitFlow", "webAuthnPolicyPasswordlessUserVerificationRequirement", "clientScopes", "internationalizationEnabled", "defaultRole", "accessTokenLifespa
n", "passwordCredentialGrantAllowed", "federatedUsers", "applicationScopeMappings" [truncated]])
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1188] (through reference chain: org.keycloak.representation
s.idm.RealmRepresentation["maxTemporaryLockouts"])

Expected Behavior

When I import the example realm, it should get imported with no errors.

Steps To Reproduce

1. Run the keycloak-config-cli container version 6.2.1-23
2. Import the example realm located in `src/test/resources/import-files/user-federation
/00_create_realm_with_federation.json`
3. The previous error message is displayed and the process fails.

Environment

  • Keycloak Version: 26.0.7
  • keycloak-config-cli Version: 6.2.1-23
  • Java Version: eclipse-temurin:21-jre

Anything else?

No response

@sdmorel sdmorel added the bug label Dec 5, 2024
@bohmber
Copy link
Contributor

bohmber commented Dec 9, 2024

6.2.1-23 is specific for KC 23. Can you test it with 6.2.1-26?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants