oAuth (depricated)
We have a specific API for authorization and identification. This API is able to do 2FA (Two-Factor Authentication) with email and sms.
We will provide you help (as in software code) with Angular as well as ReactNative components for a quick start.
Now a little of Q&A to help you out:
Creating a user
Q; What endpoint do I target to create the user?
Using POST endpoint /api/users in the authentication service, user is created and access confirmation link is sent to the email provided in the payload of the POST call.
Q; What's the result of using endpoint to create the user?
Confirmation link in the patient's email will open the UI where password has to be entered for the first time, and once submitted, user account is verified and ready to use/login.
Q; Can it be done without using UI (user interface)?
Instead of opening the confirmation link, POST call can be made to /register endpoint in the authentication service where payload is the password (and confirmed password), but the token, which is sent in the email (inside of the link), is still required.
Q; Is there any way to bypass or avoid the user interaction in the process?
No. There is no way to obtain the token without user intervention.
Q; What does the POST /person endpoint in the medical service do?
POST /person endpoint is the final step on account creation. From User Interface perspective, it is used to confirm the onboarding screen.
Updating user data
Q; Can someone else (like admin) update user data?
Not before the user grants the permission.
Q; How do I grant permission to someone to update my data?
You have to include other user to your "Network" with the "Manage Account" permission. That is the only way for someone else to get the permission to do everything on your behalf.