Hi, I'm following the EHR Launch (SMART on FHIR) steps to complete one sample authorization process from my Python web app. Here's the situation:
- I launch the EHR app using the Try it button here (first question: can I do this launch directly myself from my app?). From the list, I chose the app I created. For that app I have the clinet_id and the non-production client_id from Epic.
- I specified the "http://0.0.0.0:8100/receive_data" which is a local address as the "launch URL to receive the request to your app"
- Once I launch the app, it does call the endpoint on my local machine so looks like this part is working and the app is actually launched.
- I receive the launch and iss successfully:
- I also made a call and successfully received the Conformance Statement or SMART Configuration which includes the authorization_endpoint:
Now I need to get the
Authorization Code and this is where I'm facing the error. Here's the
GET request I'm sending to the
authorization_endpoint with the following parameters:
The error I get is: OAuth2 Error, and it does not give me any more detail. What's wrong?
What I'm trying to do? I just simply want to authorize one of the sample users that Epic has provided for testing, through MyChart and show their MyChart profile in my Python app and make some FHIR calls for that user.