Authentication issue

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

DSmart Project

unread,
Sep 3, 2021, 2:57:14 AM9/3/21
to Cerner FHIR Developers
Hi Developers,
 
I am working on the health care project so I want to complete patent details like Practitioner, Diagnostics, Allergy and Family details from cerner , I have created Cerner account and created an app with all resources below attached Client ID and App ID.

Client Id: 3faa09e9-585f-46d6-bbb8-3394103783bf
App Id: d591871f-6047-4036-bc7d-6654db0f9290

The problem is unable to get the token I tried to get the token client id but getting an HTML response like below

<head>
    <title>Loading...</title>
    <meta charset=utf-8>
    <meta http-equiv=x-ua-compatible content="ie=edge">
    <meta name=viewport content="width=device-width,initial-scale=1">
    <script>
        window.addEventListener('load', function() {
        App.load('IdentityProviderRedirectPage', 'consumerTheme', {"idspId":"ec2458f2-1e24-41c8-b71b-0e701af7583d-ch","redirectUri":"http://18.220.63.238","clientId":"3faa09e9-585f-46d6-bbb8-3394103783bf","persona":"patient","sessionServiceUri":"https://authorization.cerner.com/session-api/realm/ec2458f2-1e24-41c8-b71b-0e701af7583d-ch?to=https%3A%2F%2Fauthorization.cerner.com%2Ftenants%2Fec2458f2-1e24-41c8-b71b-0e701af7583d%2Fprotocols%2Foauth2%2Fprofiles%2Fsmart-v1%2Fpersonas%2Fpatient%2Fauthorize%3Faud%3Dhttps%3A%2F%2Ffhir-myrecord.cerner.com%2Fr4%2Fec2458f2-1e24-41c8-b71b-0e701af7583d%26scope%3Dpatient%252FObservation.read%2520patient%252FMedicationHistory.read%2520launch%26initialRequestId%3D806cabc0-d4ed-49bc-ae29-72504334eda9%26response_type%3Dcode%26launch%3Dec2458f2-1e24-41c8-b71b-0e701af7583d%26client_id%3D3faa09e9-585f-46d6-bbb8-3394103783bf&forceAuthn=true","baseUri":"https://authorization.cerner.com/","tenantId":"ec2458f2-1e24-41c8-b71b-0e701af7583d","state":""});
      }); 
    </script>
    <style>
        #missing-js-header {
            background-color: #4983d1;
            color: #fff;
            padding: .5rem
        }

        #missing-js-content {
            margin-left: 1rem
        }

        #reactRoot {
            display: none
        }
    </style>
    <link rel="shortcut icon" href="/bundles/cerner_favicon.ico">
    <link href="/bundles/application-b99ec8c7422218aa0192.css" rel="stylesheet">
</head>

<body> <noscript>
        <h1 id=missing-js-header>Cerner</h1>
        <p id=missing-js-content>Javascript must be enabled in your browser.</p>
    </noscript>
    <div id=reactRoot>Loading...</div>
    <script>
        document.getElementById("reactRoot").style.display="block"
    </script>
    <script type="text/javascript" src="/bundles/raf-6abb4f0236d3b1f501db.js"></script>
    <script type="text/javascript" src="/bundles/babel-polyfill-be9434b5f1b8df9546ad.js"></script>
    <script type="text/javascript" src="/bundles/application-b99ec8c7422218aa0192.js"></script>
</body>

</html>

Can anyone help me, How to resolve this?

Thank you 
Sanjay Kumar 
7995567871

Fenil Desani (Cerner)

unread,
Sep 7, 2021, 12:28:58 PM9/7/21
to Cerner FHIR Developers
Hello,

Since a rest client may not support JS, the request needs to be invoked from a browser.

Thanks,
Fenil

Reply all
Reply to author
Forward
0 new messages