Sample application

A sample Java web application is included in this SDK. The application uses the userdetails endpoint of the Infor Ming.le API by default.

To change the endpoint, modify the URL in bearerClientRequest of com/infor/ionapi/sample/client/web/OAuth2Servlet.java. To run the source, extract the source and run mvn jetty:run to use an embedded jetty or to deploy to your container.

  1. Extract the source and run the mvn package (maven 2 required).
  2. Deploy the war file to the j2ee container. The redirect URL for your client application changes depending on your context root. The preregistered client has the redirect URL configured with redirect_url=http://sample-oauth2.infor.com:8080/RedirectServlet. This assumes the sample application runs at the root context and port 8080.
  3. Add sample-oauth2.infor.com to the hosts file to point to the j2ee container IP address (windows hosts or /etc/hosts).
  4. Open this URL in the browser: http://sample-oauth2.infor.com:8080