Lifespark-Technologies / Infomed

Web portal that enables communication between hospitals and health authorities
MIT License
1 stars 1 forks source link

Integrated Cognito identity management #80

Closed naijauser closed 4 years ago

naijauser commented 4 years ago

I have integrated Cognito for login/registration and logout logic. The implementation is not complete, because this current logic does not cater for the different user groups like Hospital admin, Patient and Government agent.

Since we are making use of Cognito UI, we will not be making use of the custom UI I built, but I still included them in this PR, just in case we decide to use them.

Also, this PR does not persist the user token in any way. I intend to find out from backend how they want to go about authenticating API requests since the user token expires in 1hr.

naijauser commented 4 years ago

I'm running it on Windows. It's a slightly different command to set the PORT for Mac.

On Sun, Jul 12, 2020, 10:59 PM Bartosz Leper notifications@github.com wrote:

@bl-nero commented on this pull request.

In frontend/package.json https://github.com/Lifespark-Technologies/Infomed/pull/80#discussion_r453368307 :

@@ -26,7 +26,7 @@ "typescript": "^3.7.5" }, "scripts": {

  • "start": "react-scripts start",
  • "start": "set PORT=5004 && react-scripts start",

@naijauser https://github.com/naijauser I just tried to run it on my side, and it doesn't work as expected unless you change it to PORT=5004 react-scripts start. What OS are you running this on?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Lifespark-Technologies/Infomed/pull/80#discussion_r453368307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBNDNPWWMFW6CITKOAGXHTR3IW45ANCNFSM4ONIMRLA .