jakxz
08/17/2023, 3:13 PMClientApplication resource (and all the related resources like Project)?
e.g. I would love if (being root user on the machine I'm ssh'ing to) I could do this with the medplum CLI.
I may be missing something potentially obvious though, sorry if so. Thanks again!rahul1
08/17/2023, 5:25 PMrahul1
08/17/2023, 5:25 PMrahul1
08/17/2023, 5:28 PMjakxz
08/17/2023, 6:32 PMjakxz
08/17/2023, 9:12 PMUser management guidejakxz
08/17/2023, 9:14 PMjakxz
08/17/2023, 9:15 PMrahul1
08/17/2023, 9:37 PMjakxz
08/17/2023, 9:43 PMClientApplication to get a client_id and client_secret that we can use for the ClientCredentials flow. And that seems to require a Project.jakxz
08/17/2023, 9:45 PMrahul1
08/17/2023, 10:11 PMrahul1
08/17/2023, 10:13 PMrahul1
08/17/2023, 10:14 PMjakxz
08/17/2023, 10:14 PMrahul1
08/17/2023, 10:17 PMrahul1
08/17/2023, 10:17 PMrahul1
08/17/2023, 10:18 PMClientApplication within the Project of interestrahul1
08/17/2023, 10:20 PMjakxz
08/17/2023, 10:55 PMrahul1
08/17/2023, 10:58 PMrahul1
08/17/2023, 10:58 PMrahul1
08/17/2023, 10:59 PMjakxz
08/22/2023, 5:09 PMClientApplication within the Super Admin project would work in the way you're describing in this first optionjakxz
08/22/2023, 5:09 PMClientApplication resource I maderahul1
08/22/2023, 5:19 PMjakxz
08/22/2023, 5:19 PMjakxz
08/22/2023, 5:20 PM/admin/projects/:projectId/client to make the ClientApplication [and got a successful response with the id and secret, and seemingly properly linked to the super admin project]jakxz
08/22/2023, 5:21 PMrahul1
08/22/2023, 5:22 PMrahul1
08/22/2023, 5:22 PMjakxz
08/22/2023, 5:22 PMjakxz
08/22/2023, 5:23 PMselect * from "ClientApplication"; before creating the one I did, I saw no rows returnedrahul1
08/22/2023, 5:23 PMrahul1
08/22/2023, 5:30 PM/ClientApplication to create a new onerahul1
08/22/2023, 5:32 PMrahul1
08/22/2023, 5:33 PMjakxz
08/22/2023, 5:33 PMrahul1
08/22/2023, 5:33 PMjakxz
08/22/2023, 5:34 PMjakxz
08/22/2023, 5:34 PMrahul1
08/22/2023, 5:35 PMjakxz
08/22/2023, 5:35 PMjakxz
08/22/2023, 5:35 PM/jakxz
08/22/2023, 5:35 PM/Patient interestinglyrahul1
08/22/2023, 5:36 PMjakxz
08/22/2023, 5:38 PMrahul1
08/22/2023, 5:38 PM/Patient using Basic Auth?rahul1
08/22/2023, 5:40 PMrahul1
08/22/2023, 5:42 PMjakxz
08/22/2023, 5:42 PMjakxz
08/22/2023, 5:43 PMjakxz
08/22/2023, 5:43 PMrahul1
08/22/2023, 5:44 PMrahul1
08/22/2023, 5:45 PMrahul1
08/22/2023, 5:46 PMjakxz
08/22/2023, 5:47 PMrahul1
08/22/2023, 5:49 PMjakxz
08/22/2023, 5:52 PM/admin/projects/:projectId/clientrahul1
08/22/2023, 5:53 PMrahul1
08/22/2023, 5:53 PMjakxz
08/22/2023, 5:53 PMrahul1
08/22/2023, 5:53 PMGET /ProjectMembership with your existing login, to make sure the membership is created?jakxz
08/22/2023, 5:56 PM/admin/projects/:projectId/membership?rahul1
08/22/2023, 5:56 PMGET /ProjectMembership. ProjectMembership is also just a resourcejakxz
08/22/2023, 5:57 PMjakxz
08/22/2023, 5:57 PMrahul1
08/22/2023, 5:58 PMjakxz
08/22/2023, 5:59 PMrahul1
08/22/2023, 5:59 PMrahul1
08/22/2023, 6:00 PMrahul1
08/22/2023, 6:00 PMjakxz
08/22/2023, 6:00 PMjakxz
08/23/2023, 8:14 PMClientApplication resource's id and secret. still no idea what changed 😕 but this is all good now
To answer your question from earlier, I was not using the typescript client because we wanted to handle the response directly for some PATCH & PUT operations in specific ways, without any of the (retrying/error) logic under the hood that the medplum client does.
however, I realized that for the last operation we are doing, we can totally use the typescript client and it seemed to work when I had my medplum server running locally.... but I think this PR might solve the issue I am now seeingrahul1
08/25/2023, 4:12 AMrahul1
08/25/2023, 4:12 AM