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:
Token end point: https://authorization.cerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/protocols/oauth2/profiles/smart-v1/token
Created the account here : https://sandboxcernercentral.com/system-accounts/
Account Id: d82f68e7-2e80-46e3-b84b-156a883e5c30
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/ea86bb31-f1eb-4559-8be0-25903dfd1067?client=d82f68e7-2e80-46e3-b84b-156a883e5c30&tenant=ec2458f2-1e24-41c8-b71b-0e701af7583d"}
Can you please let us know what i am doing wrong.
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/ea86bb31-f1eb-4559-8be0-25903dfd1067?client=d82f68e7-2e80-46e3-b84b-156a883e5c30&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: add1f82d-1711-484f-9e92-3d7fb307e258