jembi / openhim-mediator-mapping

An OpenHIM mediator for mapping incoming content to a different format
https://jembi.github.io/openhim-mediator-mapping/
MIT License
3 stars 7 forks source link

Use new object mapper module #12

Closed MattyJ007 closed 5 years ago

MattyJ007 commented 5 years ago

Forked original object mapper module to cater for our case.

We can't let users add their own transformation functions with risking app security. Therefore to still allow transformations we have forker the object mapper module and implemented a set of pre-existing functions which can be called by providing a key which will fetch that function at run time and use it to transform the users data.

This prevents malicious users executing code directly in the app

OHM-870# If applied, this commit will: