Facing "Invalid Client" error.

72 views
Skip to first unread message
Assigned to Fenil....@cerner.com by me

Harsh Shah

unread,
Jun 27, 2022, 12:29:25 AM6/27/22
to Cerner FHIR Developers

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.

Fenil Desani (Oracle Cerner)

unread,
Jul 1, 2022, 1:45:52 PM7/1/22
to Cerner FHIR Developers
Hello,

Please provide correlationId/Error URI to troubleshoot this error further.
Also, please provide details such as clientID/AppId of your Application.

Thanks,
Fenil

Harsh Shah

unread,
Jul 15, 2022, 8:52:19 AM7/15/22
to Cerner FHIR Developers
Hello Fenil, 
Thanks for the reply.
Here are the details that you asked for:



Error.png

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


Thanks for the help!

Regards,
Harsh

Fenil Desani (Cerner)

unread,
Jul 20, 2022, 4:15:13 PM7/20/22
to Cerner FHIR Developers
Hello Harsh,

Since you have registered a confidential App, on your token request, can you make sure you are providing correct client creds?

Thanks,
Fenil

Harsh Shah

unread,
Jul 21, 2022, 9:08:28 AM7/21/22
to Cerner FHIR Developers
Hello Fenil, 

Thanks for the help! Our app is working now, we have changed it to a Public App. 

Thanks and regards,
Harsh

Reply all
Reply to author
Forward
0 new messages