tanveerqamar_97071
02/14/2024, 5:01 AMrahul1
02/14/2024, 6:55 AMrahul1
02/14/2024, 6:55 AMrahul1
02/14/2024, 6:56 AMSignInForm react component directly in your application. This takes care of a lot of the redirect logic necessary for managing the Google authentication flowrahul1
02/14/2024, 6:57 AMtanveerqamar_97071
02/16/2024, 2:00 PMrahul1
02/16/2024, 4:21 PMrahul1
02/16/2024, 4:25 PMtanveerqamar_97071
02/19/2024, 4:08 AMtanveerqamar_97071
02/19/2024, 4:09 AMtanveerqamar_97071
02/19/2024, 4:10 AMrahul1
02/19/2024, 7:09 PMrahul1
02/20/2024, 5:09 AM/token endpoint usually requires some form of authentication, and the client_id / client_secret might not be configured correctly on your medplum CLientApplicatoin
- **redirect_uri issues**: Your external IDP might not be configured correctly to have api.medplum.com/auth/external set up as your redirect URI
You can see the code for where this error was thrown here: https://github.com/medplum/medplum/blob/0d4741d0a589a5001f92a0d5cab1bb2a1b1d39df/packages/server/src/oauth/utils.ts#L738C1-L741C4rahul1
02/23/2024, 11:12 PMtanveerqamar_97071
02/26/2024, 4:45 AMtanveerqamar_97071
02/26/2024, 4:47 AMrahul1
02/27/2024, 6:01 AMtanveerqamar_97071
02/27/2024, 6:06 AMrahul1
02/28/2024, 4:39 PMcharithv
02/29/2024, 5:00 AMcharithv
03/01/2024, 1:26 PMhttps://api.medplum.com/auth/external?code=240a9fcf-879c-49c3-a0e5-b753ec23cbd4
{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"text":"Missing state"}}],"extension":[{"url":"https://medplum.com/fhir/StructureDefinition/tracing","extension":[{"url":"requestId","valueId":"3993d263-4367-42c3-a789-45a358a87df7"},{"url":"traceId","valueId":"8b2bccbc-2fe2-428f-b659-32e05d487112"}]}]}
This is using 'Authorization code grant'charithv
03/01/2024, 1:26 PMcharith@elovu.healthcharithv
03/01/2024, 1:48 PM{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Missing code"
}
}
],
"extension": [
{
"url": "https://medplum.com/fhir/StructureDefinition/tracing",
"extension": [
{
"url": "requestId",
"valueId": "91ceaa78-0119-4c69-be44-31864be29400"
},
{
"url": "traceId",
"valueId": "2382773a-b786-46fb-9efb-53fa71f4581c"
}
]
}
]
}charithv
03/04/2024, 3:18 AMrahul1
03/05/2024, 5:39 AMrahul1
03/05/2024, 5:46 AMcharithv
03/05/2024, 5:46 AMrahul1
03/05/2024, 5:46 AMrahul1
03/05/2024, 5:48 AMrahul1
03/05/2024, 5:48 AMrahul1
03/05/2024, 5:49 AMcharithv
03/05/2024, 5:50 AMrahul1
03/05/2024, 11:59 PMcharithv
03/06/2024, 4:18 AMcharithv
03/06/2024, 4:53 AMAuthorization code grant ?rahul1
03/06/2024, 4:54 AMcharithv
03/06/2024, 4:58 AMcharithv
03/06/2024, 5:00 AMexchangeExternalAccessToken with cognito .
this approach fits well into our application where user can just login with out already configured UI without any additional changesrahul1
03/06/2024, 5:01 AMexchangeExternalAccessToken to also workcharithv
03/06/2024, 5:07 AMcharithv
03/07/2024, 10:35 AMsignInWithExternalAuth but not with exchangeExternalAccessToken
same client configuration and cognito configurationcharithv
03/07/2024, 10:36 AMcharithv
03/12/2024, 2:42 PMcharithv
03/13/2024, 11:08 AM{"error":"invalid_token","error_description":"Access token does not contain the 'openid' scope"} .
we have two apps a mobile and a web which uses cognito as primary idp, could suggest us a best method way forward.
I would also like to mention this is blocker for us for successful integration of Medplum into our ecosystem .charithv
03/13/2024, 2:58 PMrahul1
03/13/2024, 8:23 PMrahul1
03/13/2024, 8:30 PMrahul1
03/13/2024, 8:32 PMrahul1
03/13/2024, 8:47 PMsignInWithExternalAuth flow.rahul1
03/13/2024, 9:25 PMcharithv
03/14/2024, 1:28 AMcharithv
03/14/2024, 2:16 PMadmin_initiate_auth also does not return 'openid' scopes in it .rahul1
03/14/2024, 9:57 PMcharithv
03/15/2024, 6:20 AMcharithv
03/15/2024, 6:21 AMrahul1
03/15/2024, 4:37 PMcharithv
03/20/2024, 8:55 AMcharithv
03/20/2024, 8:57 AMmedplum.signOut() or medplum.clear() it throws [ReferenceError: Property 'sessionStorage' doesn't exist] .
Any suggestions/ideas on how we can log user out on non-browser environments ?charithv
03/20/2024, 9:06 AMclearActiveLogin seems to be working fine!rahul1
03/21/2024, 10:25 AMrahul1
03/21/2024, 10:32 AM