Implementing OMSUIClient.jar
- Below dependencies can be added to in pom to access omsuiClient.jar:
- Fetch access token through OMSUIClient for Order Management Server UI:
- Call getAccessToken (accessTokenUri, clientID, userName, password, clientSecret) method of AccessTokenService of omsuiClient.
- Provide the following parameters:
- Access token URL:
http://[hostname]:[PortName]/omsui/oauth/token
- Client ID: [Provided by OMSUi] (for example, my-trusted-client-with-secret)
- User name: [user name for Order Management Server UI authorization]
- Password: [password for Order Management Server UI authorization]
- clientSecret: [some secret keys provided by OMSUI]
- Access token URL:
- OMSUIClient fetches access tokens for OAuth2 authorization, you can then add those tokens to the target URI to access OMSUI.