我希望你能在这里帮助我。在大约半年前开发停止后,我需要重新启动一个项目。它由不同的微服务组成。主要是基于Play框架的Scala Swagger API。但是为了保护他们的应用程序和用户他们正在使用keycloak。 在获取用户配置文件时,会发生以下内部服务器错误:
"javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "notBefore" (class org.keycloak.representations.idm.UserRepresentation), not marked as ignorable
(24 known properties: "disableableCredentialTypes", "enabled", "emailVerified", "origin", "self", "applicationRoles", "createdTimestamp", "clientRoles", "groups", "username", "totp", "id", "email", "federationLink", "serviceAccountClientId", "lastName", "clientConsents", "socialLinks", "realmRoles", "attributes", "firstName", "credentials", "requiredActions", "federatedIdentities"])
at [Source: org.apache.http.conn.EofSensorInputStream@3101000d; line: 1, column: 369] (through reference chain: org.keycloak.representations.idm.UserRepresentation["notBefore"])"
在其他端点,我得到一个类似的错误,除了定义中缺少另一个字段 Keycloak服务器在版本3.4.0.Final上运行,并且所有版本都是版本3.4.0.Final升级。
keycloak-services
keycloak-admin-client
keycloak-adapter-core
keycloak-authz-client
任何人都可以帮助我吗? 提前致谢
解决方案 我的docker-images没有拉出当前版本。所以依赖关系保持在我的运行环境中。