February 4, 2016 at 7:03 am #7510srParticipant
We have custom jsp form from where we want to pass data to openidm, for ex: to search a user in openidm based on the email entered in the form & get the response.
Any sample code/pointers to achieve this, would be highly helpful.
Please let us know in case this approach needs to be altered or if there’s a better way to achieve it.
February 4, 2016 at 6:59 pm #7537Jake FeaselModerator
- This topic was modified 6 years, 7 months ago by sr.
You need to use CORS for this: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS . Doing so will allow you to make the standard REST calls to the OpenIDM backend in the same was as any other REST client.
To use CORS with your OpenIDM instance, you need to specifically whitelist the host which will be making the XHR calls (your JSP server). To do this, add the full origin details to the “allowedOrigins” list in conf/servletfilter-cors.json
Here are the details for this servlet filter, from Jetty: http://www.eclipse.org/jetty/documentation/current/cross-origin-filter.html
You must be logged in to reply to this topic.