The redirect URL is not calling after authorization

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

Sumanta Roy

unread,
Jun 1, 2021, 9:57:27 AM6/1/21
to Cerner FHIR Developers
Hello,

 Authorization is successful, but the redirect URL is  not invoked. What is the reason for not calling the redirect url and how to resolve it?
Details is below: 
FHIR Spec: dstu2 
Cerner-Correlation-ID:"c0643b39-a256-4809-a858-077f591f8fc3"

Response header:  [Expect-CT:"enforce, max-age=30", Cache-Control:"no-store", Pragma:"no-cache", Cerner-Correlation-ID:"c0643b39-a256-4809-a858-077f591f8fc3", Content-Type:"text/html;charset=UTF-8", Content-Length:"1974", Date:"Tue, 01 Jun 2021 13:45:33 GMT", Keep-Alive:"timeout=30", Connection:"keep-alive", Server:"cloud_authorization_server1", Strict-Transport-Security:"max-age=631138519; includeSubDomains"]


Thanks
Sumanta Roy

Fenil Desani (Cerner)

unread,
Jun 2, 2021, 2:22:37 PM6/2/21
to Cerner FHIR Developers
Hello,

I do see the URL being invoked and passed the code query param.

Can you please check again?

Thanks,
Fenil (Cerner)

Sumanta Roy

unread,
Jun 3, 2021, 3:49:20 AM6/3/21
to cerner-fhir...@googlegroups.com
Hello Fenil,

I have checked, the redirect url is not invoked. What are the steps I have to follow?

Below are the detailed response of authorization API:
Cerner-Correlation-ID:"b18ff7cd-cdb3-48cd-bd4a-36cdacc3683a"  
Response code: 200 OK
Header : [Expect-CT:"enforce, max-age=30", Cache-Control:"no-store", Pragma:"no-cache", Cerner-Correlation-ID:"b18ff7cd-cdb3-48cd-bd4a-36cdacc3683a", Content-Type:"text/html;charset=UTF-8", Content-Length:"2037", Date:"Thu, 03 Jun 2021 07:19:01 GMT", Keep-Alive:"timeout=30", Connection:"keep-alive", Server:"cloud_authorization_server1", Strict-Transport-Security:"max-age=631138519; includeSubDomains"]

body: <html lang=en-US dir=ltr> <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', {"idspId":"ec2458f2-1e24-41c8-b71b-0e701af7583d","redirectUri":"http://localhost:8080/CernerApp/auth/redirect","clientId":"53115c5c-fc19-44e0-9740-c80eb4ccbfa9","persona":"provider","sessionServiceUri":"https://authorization.cerner.com/session-api/realm/ec2458f2-1e24-41c8-b71b-0e701af7583d?to=https://authorization.cerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/protocols/oauth2/profiles/smart-v1/personas/provider/authorize?launch%3D24ce95c5-bfc7-4062-a2ad-ff34b0715760%26scope%3Dlaunch%2520online_access%2520openid%2520patient/Observation.read%2520patient/Patient.read%2520profile%26state%3D123376%26response_type%3Dcode%26client_id%3D53115c5c-fc19-44e0-9740-c80eb4ccbfa9%26redirect_uri%3Dhttp://localhost:8080/CernerApp/auth/redirect%26aud%3Dhttps://fhir-ehr-code.cerner.com/dstu2/ec2458f2-1e24-41c8-b71b-0e701af7583d","baseUri":"https://authorization.cerner.com/","tenantId":"ec2458f2-1e24-41c8-b71b-0e701af7583d","state":"123376"});
      }); </script> <style>#missing-js-header{background-color:#4983d1;color:#fff;padding:.5rem}#missing-js-content{margin-left:1rem}#reactRoot{display:none}</style> <link href="/bundles/application-a5d4ba99bcf0db8b73da.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-e6a9cd53d647240a11cc.js"></script><script type="text/javascript" src="/bundles/babel-polyfill-b068948d66b127b619ee.js"></script><script type="text/javascript" src="/bundles/application-a5d4ba99bcf0db8b73da.js"></script></body> </html>

Thanks,
Sumanta Roy


--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/44Fu-oQjYVc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cerner-fhir-developers/ab2d1c65-53b1-4f78-afcd-72771dd818f2n%40googlegroups.com.

Fenil Desani (Cerner)

unread,
Jun 3, 2021, 3:24:15 PM6/3/21
to Cerner FHIR Developers
How are you calling the Authorize endpoint? Is it from a rest client or browser?

Jonathan Ekwempu

unread,
Jun 3, 2021, 10:34:13 PM6/3/21
to Cerner FHIR Developers
Can you really redirect to localhost from another domain? How is that possible?

Sumanta Roy

unread,
Jun 4, 2021, 1:57:34 AM6/4/21
to cerner-fhir...@googlegroups.com
Hello Fenil,

It is from a rest client.

Thanks
Sumanta Roy


Fenil Desani (Cerner)

unread,
Jun 4, 2021, 12:12:15 PM6/4/21
to Cerner FHIR Developers
You either need to do a browser redirect or use the rest client which has JS enabled and can perform OAuth2 Workflow.
Reply all
Reply to author
Forward
0 new messages