Workflow or API calls:
I am trying to access the public sandbox through a system app created in cerner code-console
I first registered the application as a System Application Type in https://code-console.sandboxcerner.com/
My account id is: 4998a6db-85fa-4a32-93a3-32d691868fc7
I am using Basic Authentication approach while requesting authorization on behalf of a system
Headers:
Authorization "Basic <cliend id:secret base64 encoded>
Content-Type: application/x-www-form-urlencoded,
Accept: application/json
Body
grant_type: client_credentials
scope: system/Patient.read
token url: https://authorization.cerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/hosts/api.cernermillennium.com/protocols/oauth2/profiles/smart-v1/token
Expected Result: token received
Actual Result:
Status Code: 401
Response: {"error":"invalid_client","error_uri":"https://authorization.cerner.com/errors/urn%3Acerner%3Aerror%3Aauthorization-server%3Aoauth2%3Atoken%3Ainvalid-client-credentials/instances/0f2edd4c-7b39-4252-95e3-e916783e8d86?client=unknown&tenant=ec2458f2-1e24-41c8-b71b-0e701af7583d"}
Hope you can help to understand what I am missing here
Thank you