Hello developers,
I am trying to launch a test application through the test sandbox by following all the steps given in the Documentation provided on the Cerner website.
Documentation Link: https://engineering.cerner.com/smart-on-fhir-tutorial/
Our Cerner App is configured for "Clinicians or Administrative Users" audience.
Problem:
· We are able to launch this test application from our test sandbox, which is provided inside the App on “My Apps” page.
· After launching the app, it redirects itself to a login page, as it should for the sake for authentication.
· We get the authorization code and state, and then it proceeds to get access token.
· At this stage we are getting “Invalid Client” error.
· The error is taking place in the last step, where we exchange the Authorization code for the access token.
Any help or support would be really appreciated. Thank you for your time.
This is the response I'm getting from the Token endpoint:
{"error":"invalid_client","error_uri":"https://authorization.cerner.com/errors/urn%3Acerner%3Aerror%3Aauthorization-server%3Aoauth2%3Atoken%3Ainvalid-client-credentials/instances/89b64349-f706-41b9-be53-090115274841?client=unknown&tenant=<tenant id>"}
Correlation ID: 89b64349-f706-41b9-be53-090115274841
App ID: 3f070f39-cd5d-4f8e-be18-3cd4632c76fb
Client ID: 8df9817e-a492-45ef-813a-e1cd56300e59