Table of Contents

Search

  1. Preface
  2. Introduction
  3. IDD Concepts
  4. Implementation Process
  5. IDD Configuration Manager
  6. Manual IDD Configuration
  7. IDD Global Properties
  8. Sizing and Platform Requirements
  9. Application Components
  10. IDD Security Configuration
  11. Data Security
  12. Example Role-Based Security Configuration
  13. Data Masking
  14. Siperian BPM Workflow Engine
  15. Locale Codes
  16. Troubleshooting
  17. Glossary

Data Director Implementation Guide

Data Director Implementation Guide

Configuring E360 to Send POST Requests to Web Service

Configuring E360 to Send POST Requests to Web Service

Sometimes a custom login provider uses web services that expect a POST request. Entity 360 includes a servlet that sends POST requests. To configure the servlet to send a POST request to a third-party web service, enter the URL of where to send the POST request in the
redirectToProviderLoginPage
method.
  1. Use a text editor to modify the Custom Login Provider implementation.
  2. In the properties passed to the
    initialize
    method of the Custom Login Provider, copy the URL of the servlet.
  3. In the
    redirectToProviderLoginPage
    method, create a request
    1. In the
      AuthParameters
      attribute, set the parameters with name–value pairs.
      The name–value pairs comprise the body of the POST request.
    2. In the
      ProviderGateURL
      attribute, enter the URL where the POST request is sent.
      Ensure that the URL ends with a “/” (forward slash). Otherwise, the E360 application generates a null pointer exception.
The following code shows a sample request in a Custom Login Provider implementation:
@Override public void redirectToProviderLoginPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String originalRequest) throws LoginProviderException { RequestDispatcher dispatcher = request.getRequestDispatcher(forwardUrl); Map<String, String> params = new HashMap<>(); params.put("param1", “value1”); params.put("param2", “value2”); request.setAttribute(“AuthParameters”, params); request.setAttribute(“ProviderGateURL”, “http://external.server.com/”); dispatcher.forward(request, response); }

0 COMMENTS

We’d like to hear from you!