Issue in access token

123 views
Skip to first unread message
Assigned to Fenil....@cerner.com by me

Abhishek Akant

unread,
Apr 6, 2022, 4:37:01 AM4/6/22
to Cerner FHIR Developers
Hello,

I was trying to get a token using postman by following steps from the documentation.
Post url =  https://authorization.cerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/protocols/oauth2/profiles/smart-v1/token

In authorization type, I have used basic auth and gave username and password as account id, or client id, and secret from system account.
Headers = Accept: application/json Content-Type: application/x-www-form-urlencoded
Body = grant_type=client_credentials&scope=system%2FObservation.read%20system%2FPatient.read

I am getting an error invalid client. 
Cerner-Correlation-ID: cb05939b-36b2-43cc-9636-1a28c56d6f37
Can anyone help me to solve this issue. I really appreciate any help. Also some document for further steps that need to complete the authorization process.

Thanks 

paresh pradhan

unread,
Apr 7, 2022, 7:08:56 AM4/7/22
to Cerner FHIR Developers
What is the response status in postman - 401?
Thanks,
Paresh


Abhishek Akant

unread,
Apr 11, 2022, 1:24:46 PM4/11/22
to Cerner FHIR Developers
Yes

paresh pradhan

unread,
Apr 12, 2022, 9:51:49 AM4/12/22
to Cerner FHIR Developers
I feel something wrong with your system account or password. It is working for me.

Fenil Desani (Cerner)

unread,
Apr 15, 2022, 1:33:12 PM4/15/22
to Cerner FHIR Developers
Hello Abhishek,

Can you please provide the clientID you are sending in?

Thanks,
Fenil

Abhishek Akant

unread,
Apr 20, 2022, 7:06:26 AM4/20/22
to Cerner FHIR Developers
Client id =  9e2f84ba-568a-e9a6-4dfb-b6413ee595a8    system app

CLIENT ID = Ec1b1e82-3ddf-4717-9f02-a2b356b45e3e   patient app

Fenil Desani (Cerner)

unread,
Apr 21, 2022, 11:57:46 AM4/21/22
to Cerner FHIR Developers
There are two steps to registering a System App.
  • First, create a System Account
  • Second, Register a System App using the above System Account

In you case, you completed the first step of registering a System Account and got an Account with SystemAccount ID: f58a******
In the second step, you registered the System App but not with SystemAccount ID: f58a******. Instead you used the ID: 9e2f84ba-568a-e9a6-4dfb-b6413ee595a8 which does not correspond to a System App, and hence the failure.

To make the App work correctly, you need to register a new System App and when asked to input the GUID, enter f58a******
Once done, while testing used the credentials from SystemAccount ID: f58a******

Thanks,
Fenil
Reply all
Reply to author
Forward
0 new messages