🚀 Requirement
Depends on: #8545
As a user
I would like to be sure that I am authenticated when saving a record
Since authentication with openCRVS only happens when fetching lookups, there is nothing to stop a record being saved by an unauthenticated user on the backend.
To solve this, before saving to mongo, authenticate with any endpoint on openCRVS that makes sense and bubble up any 401 errors.
The getUserDetails endpoint may be a good one to use.
Tech tasks