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