如何从 AppOrchard 获取 Auth Token?有没有比下面更简单/更好的方法?
背景:我有一个来自 AppOrchard 的客户端 ID,并且有一个正在测试的客户端应用程序(独立启动),它能够从 Epic FHIR Sandlot 获取所需的数据。但是 OAuth2 测试没有收到 Auth Token 的问题。
FHIR 客户端应用程序(Windows 桌面应用程序,.NetCore,而不是 Web 应用程序)我正在使用 Visual Studio Express C# 2017 和 2019 以及用于 FHIR DSTU2 的 NuGet 包(Core、ElementModel、序列化、Support.Poco、FhirPath)。
对于 Epic 的 OAuth2,我使用的是 Systen.Net.Http.HttpClient: HttpClient MyHttpClient = new HttpClient();
对于 Sandlot 数据,我使用了 HL7.Fhir.Rest.FhirClient: getting Bundles,然后我循环遍历数据。公共 FhirClient 客户端 = new Hl7.Fhir.Rest.FhirClient(@" https://open-ic.epic.com/FHIR/api/FHIR/DSTU2 ");