Keycloak 3.0 rest api error:UnrecognizedPropertyException:无法识别的字段" access"

时间:2018-05-22 08:31:44

标签: java rest api keycloak

我正在使用Keycloak-admin-client 3.0.0.Final和Keycloak 3.0服务器。我正在尝试添加新的重定向网址但我在尝试更新客户端时遇到异常:

13:16:47,615 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-3) RESTEASY002005: Failed executing PUT /admin/realms/DecisionSpace_Integration_Server/clients/07e6ecb0-63f0-4dde-8bde-e725c592c9d8: org.jboss.resteasy.spi.ReaderException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "access" (class org.keycloak.representations.idm.ClientRepresentation), not marked as ignorable (37 known properties: "enabled", "clientAuthenticatorType", "redirectUris", "useTemplateConfig", "clientId", "serviceAccountsEnabled", "authorizationServicesEnabled", "name", "implicitFlowEnabled", "registeredNodes", "nodeReRegistrationTimeout", "publicClient", "attributes", "protocol", "webOrigins", "consentRequired", "protocolMappers", "id", "baseUrl", "surrogateAuthRequired", "adminUrl", "fullScopeAllowed", "frontchannelLogout", "clientTemplate", "directGrantsOnly", "rootUrl", "bearerOnly", "secret", "useTemplateMappers", "notBefore", "useTemplateScope", "standardFlowEnabled", "description", "defaultRoles", "authorizationSettings", "registrationAccessToken", "directAccessGrantsEnabled"])
 at [Source: io.undertow.servlet.spec.ServletInputStreamImpl@6d806b95; line: 1, column: 3665] (through reference chain: org.keycloak.representations.idm.ClientRepresentation["access"])
        at org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:184)
        at org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:91)
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:114)
        at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)
        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)

我正在使用此代码 https://gist.github.com/imranshafqat/7e636afc8e223203451ab8c3a13b2458

0 个答案:

没有答案