Hi Fenil,
Thank you so much for your response.
Our App is
EHR launch sequence
http://hl7.org/fhir/smart-app-launch/1.0.0/#ehr-launch-sequence & we are implementing it at the
Backend level.
1. Queries on aud params:
For constructing the URL for redirect, previously I was not able to get the authorize code i.e. 'code' params whie redirecting it to /ready as a result I was getting the below error:
patient=12724066,
scope=launch,
need_patient_banner=true,
encounter=97953477,
token_type=Bearer,
expires_in=570,
user=12742069,
tenant=ec2458f2-1e24-41c8-b71b-0e701af7583d,
username=portal}
2. Queries on 'state' param:
- Currently My App is working fine with 'state' params as empty or with some hardcoded string value for example:
state=abcxyz123
state=''"
- In case if I want to restore the original 'state' param value, currently my function is not able to generate the 'state' params.
As per the http://www.hl7.org/fhir/smart-app-launch/ doc the authorization server includes this 'state' value when redirecting the user-agent back to the client in my case 'state' is not getting included by the authorization server.
- Is this fine to have a state params as empty or hardcode with some string value??
Can you please provide your comments on my above queries.
Please feel free to ask further questions.
Regards,
Rajesh Kumar