Getting invalid Request on Mychart login

843 views
Skip to first unread message

booma radhakrishnan

unread,
Jun 25, 2021, 10:37:09 AM6/25/21
to SMART on FHIR
Hi,

I am getting redirected tothe error page as in the attached  image.



https://fhir.epic.com/mychart-fhir/Authentication/OAuth/Start?error=4&response_type=code&client_id=61a52029-f45c-4612-8f0f-acda4d8a54d8&scope=launch,openid,fhirUser,profile,launch/patient,patient/Patient.read,patient/QuestionnaireResponse.read,patient/QuestionnaireResponse.create,online_access&redirect_uri=https://sandbox.rms.care?ehr=epic&actionType=resource&owner=tst-privusr1&aud=https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4&state=Q7bQMfyPYGh9YEg7&launch=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ1cm46b2lkOmZoaXIiLCJjbGllbnRfaWQiOiI2MWE1MjAyOS1mNDVjLTQ2MTItOGYwZi1hY2RhNGQ4YTU0ZDgiLCJlcGljLmVjaSI6InVybjplcGljOk9wZW4uRXBpYy1jdXJyZW50IiwiZXBpYy5tZXRhZGF0YSI6Ilp2djVGVVBZelRwT3V5YnV0Q2dMM2p5VDBGdURZM0puanVNM1JSRjhNTDA3SWlJUUxMazlza2NOR0x4QlFDMFNlZF9Kc0J0RkZCVS1UczNvTk9wNVlwN0VPam9DdmpCWUZGVXplaTV6NWFnSlo1am1KUVVIMWhyT0hUS09JNzUxIiwiZXBpYy50b2tlbnR5cGUiOiJsYXVuY2giLCJleHAiOjE2MjQ2MzE0NjMsImlhdCI6MTYyNDYzMTE2MywiaXNzIjoidXJuOm9pZDpmaGlyIiwianRpIjoiY2ExODA5NDMtMWM1Yy00M2UxLTgyY2EtZWEzOGU5MGJmNzFmIiwibmJmIjoxNjI0NjMxMTYzLCJzdWIiOiJlM3JOMkVRVFEzZTJkN2V3VVNMdjlQZzMifQ.EBpiqukkEj9kfb6L_6oe81mCvpwctZhEECCJJ3F_1j74yJ_L8F2rdTV8h67Evcf0SerCLx0tiYQO4sA7cKOmTlGjg_1EG55llPP2F-i2J-QNSP1VzN_CTp-ip0e4rFwQeMkWKdCCoKGrAxnfg7WT4b3Q27NbWqTzEjtPev4mv7SaqMkDzHEG6cC5T51ZfQMP-xDMIBXqQH4kqFD5Oai1j_S0e-FqEU_Uhb2w1FkCRdN0r_s9AdMlTF4NZ-QJvaZFGpcA8YrPcB42QNECN2-eTI75Ufw-LaZnp9YiFT36ohV_REO1CoKIt5ohrcc1t2Tp5hlwLrTBJOX8S1RSEb5scA



Is any thing i am missing please provide me some suggestions.

Regards
Radhakrishnan
invalid Request.png

James Kizer

unread,
Jun 25, 2021, 10:43:05 AM6/25/21
to booma radhakrishnan, SMART on FHIR
Hi Radhakrishnan,

One thing that jumps out to me is that I believe the scope query parameter should be space delimited instead of comma delimited. See this example.

Best,
James

--
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smart-on-fhir/e20570b4-59fb-4693-8b81-2d577fd4fbdfn%40googlegroups.com.

Paul Nelson

unread,
Aug 31, 2021, 9:44:21 PM8/31/21
to SMART on FHIR
How did you fix it? I am getting exact same error=4.

Doug Morand

unread,
Sep 1, 2021, 9:18:59 AM9/1/21
to SMART on FHIR

Mike Oliver

unread,
Sep 2, 2021, 2:51:12 PM9/2/21
to SMART on FHIR

Chris Kreis

unread,
Oct 11, 2021, 5:12:36 PM10/11/21
to SMART on FHIR
Same issue. I notice that when I hit their test url


From the browser, it does show the appropriate login, and, if I enter the test creds, it redirects appropriately and provides the necessary code in the redirect.

However, if I alter the client_id to be our own, and, being sure to add the redirect url to our profile, it still fails with request is invalid.

Anyone make any progress on this?
Reply all
Reply to author
Forward
0 new messages