Connecting patient portal to a Medplum project
# support
r
Hi team - I'm adapting https://github.com/medplum/foomedical as a patient portal and wondering how we connect it with a specific "project". For instance, in https://github.com/medplum/medplum/blob/main/packages/app/.env.defaults we specify MEDPLUM_CLIENT_ID. However, I don't seem to see where to include MEDPLUM_CLIENT_ID in the foomedical repo
r
Hi @rayliao_93919 , you can take a look at
config.ts
in the foo medical repo https://github.com/medplum/medplum/blob/main/examples/foomedical/README.md#account-setup
r
Thanks @rahul1. Looks like we need to specify MEDPLUM_GOOGLE_CLIENT_ID for foo medical. However for the provider portal https://github.com/medplum/medplum/blob/main/packages/app/.env.defaults, we need to specify MEDPLUM_CLIENT_ID. What's the difference between MEDPLUM_GOOGLE_CLIENT_ID and MEDPLUM_CLIENT_ID?
Following up - @rahul1 @reshma Looks like we need to specify MEDPLUM_GOOGLE_CLIENT_ID for foo medical. However for the provider portal https://github.com/medplum/medplum/blob/main/packages/app/.env.defaults, we need to specify MEDPLUM_CLIENT_ID. What's the difference between MEDPLUM_GOOGLE_CLIENT_ID and MEDPLUM_CLIENT_ID? Thanks for your help!
r
MEDPLUM_GOOGLE_CLIENT_ID is the client ID issue to you by Google for Google Authentication: https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid
r
Got it. Thanks @rahul1
179 Views