EPIC Smart on fhir OAuth2 Error

1,174 views
Skip to first unread message

ashok...@gmail.com

unread,
Aug 27, 2018, 11:05:31 AM8/27/18
to SMART on FHIR
For the following code .

var clientId = "fe0fb382-4f33-4e4f-ba86-0f4ff4b452e0";
        var redirectUrl = "http://localhost:64584/Account/smart";
        
        var sourcePageId = "";

        debugger;
        FHIR.oauth2.authorize({
            'client_id': clientId,
            'redirect_uri': redirectUrl,
            'scope': "PATIENT.READ, PATIENT.SEARCH"

        });


I am getting 

fe0fb382-4f33-4e4f-ba86-0f4ff4b452e0 : Non production client Id

OAuth2 Error: 

INVALID_CLIENT

The application trying to authorize is not recognized, provided invalid identifying information, or we were unable to verify its identity at this time.



Any help 


Michael Krupnick

unread,
Aug 27, 2018, 1:04:38 PM8/27/18
to ashok...@gmail.com, smart-...@googlegroups.com
You'll need to login to the Open EPIC Portal and go here (https://open.epic.com/MyApps) to "Create an app" for your application.  Once this is created you submit it to the sandbox and overnight it becomes "live" in the sandbox.  Then your client id (That you get from them) should work.

Thanks,

-Michael Krupnick


--
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.
For more options, visit https://groups.google.com/d/optout.

ashok...@gmail.com

unread,
Aug 28, 2018, 3:39:36 AM8/28/18
to SMART on FHIR
Thanks Michael it is the same issue.

I had created the app on the same day.

Regards,
Ashok
Reply all
Reply to author
Forward
0 new messages