如何使用WSO2是仅针对辅助用户存储的SOAP服务调用
如何将WSO2 IS soap服务仅针对辅助用户存储 例如,我成功地使用了“RemoteUserStoreManagerService”SOAP服务来列出用户。如何使用SOAP服务仅针对我的辅助存储如何使用WSO2是仅针对辅助用户存储的SOAP服务调用,wso2,wso2is,Wso2,Wso2is,如何将WSO2 IS soap服务仅针对辅助用户存储 例如,我成功地使用了“RemoteUserStoreManagerService”SOAP服务来列出用户。如何使用SOAP服务仅针对我的辅助存储 configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); String serviceEndPoint = SERVER_URL + "Remot
configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
String serviceEndPoint = SERVER_URL + "RemoteUserStoreManagerService";
RemoteUserStoreManagerServiceStub adminStub
= new RemoteUserStoreManagerServiceStub(configContext, serviceEndPoint);
ServiceClient client = adminStub._getServiceClient();
Options option = client.getOptions();
option.setProperty(HTTPConstants.COOKIE_STRING, null);
HttpTransportProperties.Authenticator auth
= new HttpTransportProperties.Authenticator();
auth.setUsername(USER_NAME);
auth.setPassword(PASSWORD);
auth.setPreemptiveAuthentication(true);
option.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, auth);
option.setManageSession(true);
String[] users = adminStub.listUsers("*", 10);
if (users != null) {
for (String user : users) {
System.out.println("Username : " + user);
}
}
谢谢!
Ben假设有一个名为
FOO
的use store,那么您需要将搜索模式传递给列表用户,将其命名为FOO/*
adminStub.listUsers(“FOO/*”,10)代码>
使用RemoteUserStoreManagerService
时,可以使用FOO/
前缀从FOO
用户存储检索数据
假设如果要从FOO
中的用户检索用户属性,则必须将用户名作为FOO/asela
传递,谢谢。这是否也适用于添加用户?添加用户FOO/asela是否将“asela”添加到FOO用户存储?