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.

Receiving invalid client credentials

Rob MOct 8 2024 — edited Oct 8 2024

Workflow or API calls:

REQUEST

export SYSTEM_ACCOUNT_CLIENT_ID="0fed8424-f528-4e03-a92b-27622fbf6aa6"

export SYSTEM_ACCOUNT_CLIENT_SECRET="secret"

curl -X POST 'https://authorization.cerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/protocols/oauth2/profiles/smart-v1/token' \

-H 'Accept: application/json' \

-H "Authorization: Basic $(echo -n $SYSTEM_ACCOUNT_CLIENT_ID:$SYSTEM_ACCOUNT_CLIENT_SECRET | base64)" \

-H 'Content-Type: application/x-www-form-urlencoded' \

-H 'cache-control: no-cache' \

-d ‘grant_type=client_credentials&scope=system%2FObservation.read%20system%2FPatient.read’

Background Information:

I created an application in the sandbox environment and I tried to get an access token with out success. I tried multiple ways, but still no luck

Expected Result:

Expected to get a 200 status code with an access token

Actual Result:

{"error":"invalid_client","error_uri":"https://authorization.cerner.com/errors/urn%3Acerner%3Aerror%3Aauthorization-server%3Aoauth2%3Atoken%3Ainvalid-client-credentials/instances/6be10d67-ac33-45e1-8266-ec51215c89c8?client=unknown&tenant=ec2458f2-1e24-41c8-b71b-0e701af7583d"}

This post has been answered by Someshwara Nazare-Oracle on Oct 8 2024
Jump to Answer
Comments
Post Details
Added on Oct 8 2024
2 comments
223 views