我对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);
}
}
请帮助...