Hello,
The Situation:
My team has a working backend sandbox application on Epic that we are moving to a production ready. On the Epic App page, we have agreed to the terms, and clicked ready for production.
To test our application, we attempted to get an Oauth token using the production clientId against the endpoint
"https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/DSTU2/tokens". We received and
"invalid_client" error. This system has been thoroughly tested on sandbox, so we are confident our implementation is correct, as we do not get this error with our sandbox clientId.
The Question:
When moving an application to production, should we be able to obtain a token using our clientId against the same endpoint we used in sandbox? Or rather, does the production client-id have to be associated with a production endpoint that has registered the app (for example "
https://epicfhir.nyumc.org/FHIRPRD/api/FHIR/DSTU2/tokens" for NYU Langon) in order to authenticate?