opiation.
01/11/2023, 6:38 PMMedplumClient from @medplum/core client and Medplum docker image together?opiation.
01/11/2023, 8:06 PMserver source code, we see that the oauth/authorize endpoint expects a scope param to be a non-empty string.
While trying to leverage the `MedplumClient`'s signInWithRedirect method, I get an invalid_request error. There's no more detail than that so I think the issue is that scope is not provided provided but the signInWithRedirect method accepts no arguments so there's no way to provide that in the method call.
I managed to set a scope param by manually specifying the authorizeUrl to what I need plus ?scope=exampleScope but that feels kinda hacky and only gets me slightly further. The Medplum server redirects me to <MY-APP-ORIGIN>/oauth without a token, cookie etc. Am I missing something? Have I forgotten something about the OAuth2 flow?rahul1
01/11/2023, 9:51 PMopiation.
01/12/2023, 2:27 AM