How can I get Auth Token from AppOrchard? Is there an easier/better method than below?
Background: I have a Client ID from AppOrchard and have a Client App (Standalone Launch) in test that is able to obtain needed data from the Epic FHIR Sandlot. But issues with OAuth2 test not receiving an Auth Token.
The FHIR Client app (a Windows Desktop app, .NetCore, NOT a Web app) I am using Visual Studio Express C# 2017 & 2019 with NuGet Packages for FHIR DSTU2 (Core,ElementModel,Serialization, Support.Poco,FhirPath).
For the OAuth2 from Epic I am using Systen.Net.Http.HttpClient: HttpClient MyHttpClient = new HttpClient();
For the Sandlot data I used HL7.Fhir.Rest.FhirClient: getting Bundles back which I then loop thru for data. public FhirClient client = new Hl7.Fhir.Rest.FhirClient(@"https://open-ic.epic.com/FHIR/api/FHIR/DSTU2");