This topic demonstrates how to use different web services API exposed by Identity Server, to write a client application(remote-user-mgt) to handle user management functionality of WSO2 Identity Server remotely. The remote-user-mgt sample uses
AuthenticationAdmin, RemoteUserStoreManagerService and
RemoteAuthorizationManagerService admin services to perform different operations.
- The code for the sample can be checked out from the GitHub repository. To do this, follow the instructions on the Downloading a Sample topic.
Once downloaded the identity server samples, go inside to
IS_SAMPLES/modules/samples/user-mgt/remote-user-mgtdirectory to build the remote user management cliant.
Make sure the URL of the remote server (remote.server.url), credentials of the user who performs user management operations (user.name, user.password) and truststore (truststore.path, truststore.password) configured in IS_SAMPLES/modules/samples/user-mgt/remote-user-mgt/client.propeties are correct with respect to your environment. If you have changed the private key in the identity server, import the public certificate of the identity server to truststore (client-truststore.jks) of the sample client in IS_SAMPLES/modules/samples/user-mgt/remote-user-mgt/src/main/resources/keystore.
Build the client using
Once the client is built successfully, run the remote-user-mgt-client
.shfile in Unix or remote-user-mgt-client
.batin Windows. You can see that the issues performed is being printed by the client.
Note: The service stubs are available at WSO2 Maven Repository and can be added as dependencies to the project. Also, you can generate the service stubs from the WSDL file available at https://localhost:9443/services/<ServiceName>?wsdl
In order to access the WSDL file, update the following configuration in the