Session getting lost while calling the redirect-url using Spring Boot

307 views
Skip to first unread message
Assigned to kol.k...@gmail.com by Fenil....@cerner.com

Rajesh Kumar

unread,
Sep 3, 2021, 2:16:48 PM9/3/21
to Cerner FHIR Developers
Hi Team,

While launching  my  /launch & post calling the /metadata I'm storing my FHIR_TOKEN_URL_KEY inside a session.

While calling the /redirect-uri my old session is getting lost as a result I'm not able to retrieve my FHIR_TOKEN_URL_KEY.

NOTE: This is working fine in CHROME & FIREFOX, but facing issues only with the IE11.

This looks like a very common issue in SMART-ON-FHIR ecosystem.

Requesting you to please look into this issue as this is impacting our customers.

Regards,
Rajesh Kumar

Kol Kheang (Cerner)

unread,
Sep 7, 2021, 1:42:51 PM9/7/21
to Cerner FHIR Developers
Hi Rajesh,

Is the application using `sessionStorage` API? If so, could you use the state uuid that your app generates as the key for this? See examples here https://fhir.cerner.com/authorization/#examples. The state uuid is generated on each launch and is passed back in the query param. And this is how to use sessionStorage with a specific key and value, and retrieving the value with a key: https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage#basic_usage

If the app is using fhir-client js, you can pull in this library to use state as the key for the sessionStorage API. This is needed to uniquely separate token for each launch.

See more info here:


Regards,
Kol

Rajesh Kumar

unread,
Sep 8, 2021, 12:35:52 PM9/8/21
to cerner-fhir...@googlegroups.com
Hi Team,

Any update on this ?

Regards,
Rajesh Kumar

--
You received this message because you are subscribed to the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this group and stop receiving emails from it, 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/fd72e93c-0bef-4f5f-a1ff-22b1119a1b9bn%40googlegroups.com.

Kol Kheang (Cerner)

unread,
Sep 8, 2021, 12:59:17 PM9/8/21
to Cerner FHIR Developers

Rajesh Kumar

unread,
Sep 8, 2021, 1:42:43 PM9/8/21
to cerner-fhir...@googlegroups.com
Thanks for your response Kol.

We are not using sessionStorage api instead we have used httpSession and we’re setting the session attributes using SpringBoot (Java) which is getting lost while redirect uri.


Regards,
Rajesh Kumar

Kol Kheang (Cerner)

unread,
Sep 8, 2021, 6:49:44 PM9/8/21
to Cerner FHIR Developers
Rajesh,

I'm not familiar with httpSession and SpringBoot. My recommendation is to reach out to the SMART on FHIR community and see if others are having this issue as well. If the app isn't working with IE11, I'd search the web and see if there is a solution for it. Does the app work in a standalone IE browser when launching from code Developer Portal?

By the way, this is the embedded browser control that we're using from Microsoft.


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