Stream: smart
Topic: SMART on FHIR dotnet application
Sylvester S (Jul 14 2020 at 23:46):
Hi, I'm building a SMART on FHIR confidential application. So chose dotnet MVC as SPAs using Angular will expose the client secret. Could you please suggest if this approach is correct? Also, could somebody help me with a reference/url to sample dotnet SMART on FHIR? Thanks
Sylvester S (Jul 15 2020 at 11:18):
I mean sample dotnet code as I found JavaScript code only. Thanks
Sylvester S (Jul 30 2020 at 14:39):
Hi @Josh Mandel , could you please help me by pointing to a sample dotnet code for SMART on FHIR app as I found only JavaScript examples?
Yunwei Wang (Jul 30 2020 at 15:18):
It is the same as regular MVC application. You need rewrite the Javascript logic in .net controller.
Sylvester S (Jul 30 2020 at 15:24):
Actually launching and redirecting is getting a little bit trickier. So thought a sample app would help.
Gino Canessa (Jul 30 2020 at 16:17):
If you don't have any luck, I'll add it to my list to write one. It may be a couple of days before I can get to it though.
Sylvester S (Jul 30 2020 at 16:26):
Thank you very much @Gino Canessa . That is a lot of help.
However, I will keep trying and let you know if I could get it working.
To give a sense of what I'm trying, I have an Angular front end and WebAPI back end.
Thanks a lot again.
Yunwei Wang (Jul 30 2020 at 17:32):
There are many angular FHIR app. So what is your question or concern? I remember when I did that, CORS was a big headache. Other than that, I don't remember any special concerns for .net.
I noticed you have a similar topic in #dotnet stream. It is better to merge discussion there.
Sylvester S (Jul 30 2020 at 18:58):
Hi @Yunwei Wang ,
Yes there are many Angular apps. But their functionality is implemented on the front end only. For this, we use Smart API for handling all transactions.
I'm trying to do Angular front end and WebAPI back end. Want to do everything on server side. I did some work already. But the context is getting lost in between launching the app and redirecting the app.
I was looking for a sample application in dotnet that kind of give some direction on this. But I found only JavaScript/Angular apps. Then @Kenneth Myhra from #dotnet shared his code. I'm looking into it.
I'm new to this channel. Initially I posted the question here. When I didn't get a response, I posted a similar question in #dotnet.
Michele Mottini (Jul 30 2020 at 19:13):
The initial url has a state
parameter that is then passed as-is to the redirect, so put your state there (or save the state somewhere and put an id there so you can retrieve the state later)
Sylvester S (Jul 30 2020 at 19:36):
Thanks @Michele Mottini . Will try that
Last updated: Apr 12 2022 at 19:14 UTC