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.

400 bad request when generating the bearer token for system account in the sandbox environment

Shashi SongaJul 8 2024

Workflow or API calls:

Reminder: If this is referring to a client domain or EHR activity—not the public sandbox—do not include API request data or live patient data..

System account:

Created the account here : https://code-console.cerner.com

Account Id: 5327bc15-b129-4ac5-9116-2aae9e4213b1

Added the JSON Web Key Set as well.

Created the encoded jwt and using it to get the bearer token but it is returning the below error.

{"error":"invalid_client","error_uri":"https://authorization.cerner.com/errors/urn%3Acerner%3Aerror%3Aauthorization-server%3Aclient-assertion%3Ajwt-bearer%3Ainvalid-assertion/instances/e6270be6-adb4-4b43-bcbb-d8672c8b5a90?client=5327bc15-b129-4ac5-9116-2aae9e4213b1&tenant=ec2458f2-1e24-41c8-b71b-0e701af7583d"}

Correlation id: e6270be6-adb4-4b43-bcbb-d8672c8b5a90

Can you please let us know what i am doing wrong. Appreciate your help.

Expected Result:

Bearer token with 200 status code

Actual Result:

400 with error

{"error":"invalid_client","error_uri":"https://authorization.cerner.com/errors/urn%3Acerner%3Aerror%3Aauthorization-server%3Aclient-assertion%3Ajwt-bearer%3Ainvalid-assertion/instances/e6270be6-adb4-4b43-bcbb-d8672c8b5a90?client=5327bc15-b129-4ac5-9116-2aae9e4213b1&tenant=ec2458f2-1e24-41c8-b71b-0e701af7583d"}

Client Assertion could not be parsed.

Error Code:

urn:cerner:error:authorization-server:client-assertion:jwt-bearer:invalid-assertion

X-Request-Id / Cerner-Correlation-Id / opc-request-id: ea86bb31-f1eb-4559-8be0-25903dfd1067

This post has been answered by Shashi Songa on Jul 10 2024
Jump to Answer
Comments
Post Details
Added on Jul 8 2024
2 comments
375 views