openmhealth / omh-dsu-ri

An application for storing mobile health data and authorizing access to it.
http://www.openmhealth.org/documentation/#/store-data/storage-overview
Apache License 2.0
39 stars 32 forks source link

Client Registration #13

Open alalcantara opened 7 years ago

alalcantara commented 7 years ago

I forked and made some modifications to the code to be able to register clients, which involved separating the existing SpringDataClientDetailsServiceImpl into a modified SpringDataClientDetailsServiceImpl (implements ClientDetailsService) and SpringDataClientRegistrationServiceImpl (implements ClientRegistrationService). The client controller takes in ClientRegistrationData, similar to the EndUser creation process. However, this only accomplished saving the new client to the mongodb. How do I save the client to the postgres db so that a POST to a "/clients" endpoint will register a client?