Hi all,
I'm new to this group and SMART on FHIR application development. I am currently in the process of authenticating my application before searching for Patients on Epic. I am able to establish an initial handshake using a JS fetch() query and get an OK response with the text body of an html form for login access to my application from Epic. (screenshot below).
This is the url used to send that initial request:
Now I have no clue how to proceed with actually using the provided credentials in this form that has been returned. If I render the page, fill form and hit the login button, I am redirected to the login subdirectory on my local dev env. I have spent endless hours trying to understand what to do with this form and how to actually send the form data back to epic to finish authentication.
This application is written in JS and can use any of the FHIR versions Epic allows. The main reason I came here to post was to ask for resources for beginners to understand the flow of authentication as the flow provided by App Orchard Epic seems to miss some major steps in the OAuth 2.0 tutorial and the fhir client for js does not seem to provide a lot of documentation about its own components. Any help regarding what direction to take from this point on would be highly appreciated. I have attached a screenshot of the page that I am referring to.
