com.fasterxml.jackson.databind.exc.MismatchedInputException:缺少必需的创建者属性“状态”(索引0)

时间:2018-12-10 07:42:50

标签: java wso2 scim2

我对SCIM非常陌生。我尝试将SCIM 2.0用于WSO2身份服务器在我的项目中创建新用户。下面是我的代码

groupby

我记录了如下错误消息:

public void callSCIM() throws URISyntaxException, ScimException {

        final String bearerToken = "Basic ..basic token...=";
        ClientConfig config = new ClientConfig();
        ApacheConnectorProvider connectorProvider = new ApacheConnectorProvider();
        config.connectorProvider(connectorProvider);
        Client restClient = ClientBuilder.newClient(config).register(OAuth2ClientSupport.feature(bearerToken));
        WebTarget target1 =
            restClient.target(new URI("https://localhost:9443/wso2/scim/"));
        ScimService scimService = new ScimService(target1);

        UserResource user = new UserResource();
        user.setUserName("babs");
        user.setPassword("secret");
        user = scimService.create("Users", user);

    }
}

请帮助...

0 个答案:

没有答案