unable to get auth from cerner sandbox : help needed..

124 views
Skip to first unread message

Ashok Sharma

unread,
Mar 7, 2023, 7:18:45 PM3/7/23
to Oracle Cerner FHIR Developers
I am developing patient facing app using python. I am constantly getting following error

Patient" was attempting to request access to healthcare data with Cerner FHIR Public Sandbox; unfortunately, the application doesn't appear to be compatible. If you require further assistance, please contact support.
If possible, please bookmark this page or take a screen shot of it to expedite the technical support process. For assistance, contact support via:
Information to provide to Technical Support
Correlation ID:
77cf7d53-842b-402d-a5fd-dfa79e0c6ff7
Information to provide to Penguin - Patient
The requested redirect URI does not match the one registered for "Penguin - Patient".
Error Code:
urn:cerner:error:authorization-server:oauth2:grant:invalid-redirect-uri
Cerner's developer portal may provide useful information to assist in resolving this issue.

I am using smart-on-fhir/client-py python module. 
The code works well with EPIC sandbox system, but not with Cerner. 

Greatly appreciate any help resolving this issue, 

- Ashok Sharma

Aaron McGinn (Oracle Cerner)

unread,
Mar 10, 2023, 4:58:16 PM3/10/23
to Oracle Cerner FHIR Developers
When you have multiple redirect_uris associated with your app, you have to provide one in your auth request—which you are doing! Our authorization server uses strict path validation [1], which includes trailing slashes in your redirection URI. This looks like it is what is happening in your case. The redirect_uri you are attempting to use has a trailing slash as registered in the code Console. Adding this trailing slash to your request should resolve this error!


-Aaron (Oracle Cerner)
Reply all
Reply to author
Forward
0 new messages