nomad-nmr / nomad-server

Server side code for NOMAD system
https://www.nomad-nmr.uk/
GNU Affero General Public License v3.0
3 stars 2 forks source link

Add/update users via automated API call #94

Open RalphAdams opened 6 months ago

RalphAdams commented 6 months ago

Add a hook to allow users to be added to the database, or set to active/inactive via an API call from a separate system. This will allow a separate user database such as PPMS or - eg. one that controls lab security access - to send instructions directly to nomad to enable/disable/add users.

tomlebl commented 6 months ago

In theory, this is possible and should not be that difficult. API is already there but you need to authenticate the requests. So, we would need to create a different end point which would take an some API key rather than json-web token. For sure I can adjust things on my side. The question is can you set PPMS to send HTTP request to a given address and attach an object in the body of request. If yes then it can be done.