simonj
09/02/2025, 2:08 PMexchangeExternalAccessToken() seems like the way to go but the only problem is the /userinfo endpoint is not required as part of the spec, and Epic does not support it (neither does the official smarthealthit.org test harness).
The only thing I can think of is to create a reverse proxy for that URL that introspects the token to provide the response (the introspection endpoint is more widely supported).
Has anyone else launched Medplum from an EHR and logged-in the user? Or any other ideas on how to implement this?
Any help would be great! Thanks -Simonfinnbergquist
09/02/2025, 11:28 PM/userinfo, but for now your proxy approach seems like a viable workaroundsimonj
09/02/2025, 11:43 PMuserinfo to the introspection endpoint looks like a good option - also allows us to provision a new user if they don't already exist.