Stream: implementers
Topic: Oauth2
Krishna Kumar (Feb 09 2022 at 09:22):
I am getting oauth2 error on epic it was working before but now not working
I am sending the payload below:
FHIR.oauth2.authorize({
'client_id': 'f3174bc9-02d2-4637-a612-9166b3b3aa93',
'scope': 'patient.read, patient.search, observation.read, observation.search',
'redirect_uri': 'http://localhost:3000',
'iss': 'https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4/'
})
Please help me out with this.
Lloyd McKenzie (Feb 09 2022 at 15:01):
Already asked here. Please only raise questions in one place unless directed to do otherwise.
Michele Mottini (Feb 09 2022 at 15:58):
I don't know if it is what cause the issue, but those scopes are not correct, see http://hl7.org/fhir/smart-app-launch/1.0.0/scopes-and-launch-context/index.html#patient-specific-scopes
Krishna Kumar (Feb 09 2022 at 18:06):
But with this scope it was working yesterday, now today is not working.
Krishna Kumar (Feb 09 2022 at 18:07):
is this because I have added more scopes on the account?
Krishna Kumar (Feb 09 2022 at 18:12):
I am also getting the same error if I place the scope like this:
FHIR.oauth2.authorize({
'client_id': 'f3174bc9-02d2-4637-a612-9166b3b3aa93',
'scope': 'patient/*.read',
'redirect_uri': 'http://localhost:3000',
'iss': 'https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4/'
})
Cooper Thompson (Feb 09 2022 at 23:18):
We don't really care about run-time scopes. But we had some sandbox issues in the past day or so. I think we have those resolved - are you still seeing issues?
Krishna Kumar (Feb 10 2022 at 11:55):
Yes I think it's resolved now, but now am getting this error:
{
"error": "invalid_grant",
"error_description": null
}
Payload am sending the same as above as I mentioned:
FHIR.oauth2.authorize({
'client_id': 'f3174bc9-02d2-4637-a612-9166b3b3aa93',
'scope': 'patient/*.read',
'redirect_uri': 'http://localhost:3000',
'iss': 'https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4/'
})
Could you please help me on this?
Krishna Kumar (Feb 11 2022 at 07:15):
any luck on the above?
Krishna Kumar (Feb 11 2022 at 07:49):
@Cooper Thompson
Last updated: Apr 12 2022 at 19:14 UTC