Hi,
I am writing a simple WPF application to view a webmap that is only available for my organization. I have had issues finding example code for how to authenticate to be able to do that. I have used the examples I have found, but cannot make it work. Any ideas? This is what I have so far.
private async Task SetupMap()
{
Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.ApiKey = "*****";
ArcGISPortal portal = await ArcGISPortal.CreateAsync();
PortalItem mapItem = await PortalItem.CreateAsync(portal, "****");
Map map = new Map(mapItem);
this.Map = map;
}
Thank you for the reply. I am using ArcGis Online as far as I know 🙂 I am using a set username and password for the application, and then authenticating that way.
I have also been looking into using a proxy to do all the hand-shaking, but I am also not sure how to implement a proxy into the application.
I will try and figure it out from your reply, and will post an update with code to how its going 🙂
Thank you 🙂
Did you ever find a resolution? -- Thanks