ArcGIS Runtime SDK 10.2.7 Windows authentication not working on Portal Maps

344
0
11-29-2022 09:47 PM
jgalarse
New Contributor II

Hi,

We have an that is currently using the ArcGIS Runtime SDK v10.2.7 to handle map functions in WPF. The app supports Token authentication and Windows authentication. We discovered an when one of our clients switched to ArcGIS Portal. Token authentication still works on Portal maps and all existing functionality  are still working. The issue is with Windows authentication, when we use our existing windows authentication process to load the map, we don't get any specific errors except when we actually try to communicate with the map. The map also doesn't load. We use the following code to authenticate windows user:

 

 

WindowsIdentity identity = System.Security.Principal.WindowsIdentity.GetCurrent();

using (identity.Impersonate())
{
	ArcGISNetworkCredential cred = new ArcGISNetworkCredential() { Credentials = CredentialCache.DefaultNetworkCredentials, ServiceUri = layerDefinition.LayerUrl };

	IdentityManager.Current.AddCredential(cred);
}

 

 

We have also tested it using the latest ArcGIS Runtime nuget package v100.3.0.0 and windows auth on portal maps work with that version but updating the version is a bit of a big job on our app. Maybe someone encountered the same scenario as us.

 

Thanks.

0 Kudos
0 Replies