Skip to Main Content

SMART Authorization

Announcement

For information related to the Oracle Partner Network (OPN) Industry Healthcare Track please visit our OPN Industry Healthcare Program page.

For specific questions related to Oracle Partner Network (OPN), please contact Partner Assistance.

Millennium FHIR and non-FHIR API Specifications and Supporting Documents can be found HERE on docs.oracle.com
Soarian FHIR API Specifications and Supporting Documents can be found HERE on docs.oracle.com.

Authorization URL discovery returns invalid_client; Patient GET returns 404

Hello,

Background Information:
Developer questions:

Are you an OPN Member? No
Have you signed up to be in the Healthcare Developer Track? No
Are you a registered Code Program member? No
Does your App have a presence on the Oracle Healthcare App Marketplace? No

Are you developing on behalf of an Oracle Health client?
If so, which client:

Application ID: 76889c6c-2a47-4815-954c-3d18824c3456
CLIENT_ID=b87c7991-51e4-433a-a8d7-89ab70d0bf19
The error reproduces for both client's and my sandbox application.

Body:

I registered a confidential backend application in Code Console.
Application ID: 6ee15bb1-097e-47f9-b57a-43bea17e557d
CLIENT_ID=843f391a-7ff7-491d-9c11-294b3e31766c

I used:

curl --request GET \ --url https://fhir-ehr.sandboxcerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/.well-known/smart-configuration

to get a token endpoint:

{ "token_endpoint": "https://authorization.sandboxcerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/hosts/fhir-ehr.sandboxcerner.com/protocols/oauth2/profiles/smart-v1/token", … }

But this token endpoint returns **invalid_client**.

I was able to get an access token only when using this URL for discovery:

https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/.well-known/smart-configuration

Why did this happen?

Also, I tried different URLs to get patients:

possible_urls = ["fhir-ehr.sandboxcerner.com", "api.cernermillennium.com", "fhir-ehr-code.cerner.com"] patient_get_url = f"https://{url}/fhir/r4/Patient"

I used the access token in the request header, but got 404 Not Found.

Could you help me figure out the error?

This post has been answered by Alex Duhanov-Oracle on Sep 11 2025
Jump to Answer
Comments
Post Details
Added 5 days ago
3 comments
30 views