Invalid recaptchaSiteKey
# support
g
Hi team, I encountered a problem while deploying the provider portal (https://github.com/medplum/medplum/tree/main/examples/medplum-provider) on my local machine. I followed the instructions in this documentation(https://www.medplum.com/docs/auth/methods/google-auth) to create the Google Client ID and reCAPTCHA enterprise, and I filled in the necessary details in the Medplum project site and my .env file. However, I am still getting an error. Could you please assist me with this issue? Thank you!
r
Can you confirm that you have updated the ProjectID in the signin and signup forms?
Also does your provider app signing/registration work on localhost?
g
@reshma Thank you for your reply! I really appricated your help! I updated my ProjectID, and now it shows 'Project does not allow open registration.' I think this issue is related to the provider access policies? How can I create the necessary access policies to enable providers to register an account?
r
Ok! Great! Is this a provider facing application? Or patient facing application?
Do you have a DefaultPatient Access Policy in place?
g
Thank you! @reshma Yeah! This is a provider-facing application. The DefaultPatient Access Policies won't work here? I just wondering.
This is the default I currently put on there: { "resourceType": "AccessPolicy", "name": "Patient Access Policy", "id": "042e1437-c7a4-4996-9f74-775ad38605ff", "compartment": { "reference": "%Patient" }, "resource": [ { "resourceType": "Patient", "criteria": "Patient?_compartment=%patient" }, { "resourceType": "Observation", "criteria": "Observation?_compartment=%patient" }, { "resourceType": "DiagnosticReport", "criteria": "DiagnosticReport?_compartment=%patient" }, { "resourceType": "MedicationRequest", "criteria": "MedicationRequest?_compartment=%patient" }, { "resourceType": "Coverage", "criteria": "Coverage?_compartment=%patient" }, { "resourceType": "PaymentNotice", "criteria": "PaymentNotice?_compartment=%patient" }, { "resourceType": "CarePlan", "criteria": "CarePlan?_compartment=%patient" }, { "resourceType": "Immunization", "criteria": "Immunization?_compartment=%patient" }, { "resourceType": "Communication", "criteria": "Communication?_compartment=%patient" }, { "resourceType": "Organization", "readonly": true }, { "resourceType": "Practitioner", "readonly": true }, { "resourceType": "Schedule", "readonly": true }, { "resourceType": "Slot", "readonly": true }, { "resourceType": "Binary" } ] and I am wondering how to solve the 'Project does not allow open registration', Thank you @reshma !
r
There isn't open onboarding for Practitioners (Providers) - that's usually a compliance issue! If you need to create Practitioner identities use the "Invite" endpoint! https://www.medplum.com/docs/auth/user-management-guide#invite-via-api
g
That is helpful! Thank you @reshma ! I will check it.
r
Hi @Guoyi Z (Empallo) - would you mind sharing a bit more detail about your use case? Specifically how open provider onboarding works with your business case?
148 Views