Re: EHR Launch In Valid Client Error, but Auth code is fine

84 views
Skip to first unread message
Message has been deleted

Balaram Kumar

unread,
May 26, 2020, 5:55:17 PM5/26/20
to SMART on FHIR
This issue is fixed. I had the redirect url as encode. It supposed to be decoded

On Sun, May 24, 2020 at 1:06 PM Balaram Kumar <balara...@gmail.com> wrote:
Hi,

I tried Standalone launch successfully with out any issues. But when I try the ER Launch I am always getting the following error. Able to generate auth code with out any issues.
Can someone guide me what I might be doing wrong.


{
  "error""invalid_client",
  "error_description"null
}

Here is the POSTMAN Code:


client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "ASP.NET_SessionId=k3lkv1meucun45dpq1ct0urz; EpicPersistenceCookie=!HrjMVzn8C9nJcyv0i9vn46MY7yAhQekXGCAcXmXpxJFTALrHu+iRhuudLnDd8IsaHbIUzrmCxmA6O5c=");
request.AddParameter("grant_type", "authorization_code");
request.AddParameter("code", "eMVgREKxhr9aCzwwpG_mXtME36my8VszO0ehnL5vJ-Wck2VLib2JyRCuJR7OTm-87PNuDlT3xT2Oe9Hbvz7CXxTXrrM-RCymCmkzc0l6K4zu-GkfqYKzUexPav-NT20N");
request.AddParameter("redirect_uri", "https%3A%2F%2Ftestfhir.azurewebsites.net%2Fweatherforecast%2Fmymethod%0A");
request.AddParameter("client_id", "6d0db13a-9583-4676-bc4a-b4f8131ec7b9");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

--
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smart-on-fhir/a760b750-5220-4c52-9101-feb39f08b7f4%40googlegroups.com.


--
Thanks
BALA
Reply all
Reply to author
Forward
Message has been deleted
0 new messages