Hi Jennifer,
Thanks for your reply.
I'm using a different method (see code below). This is the signature which shows the (system?) challenge dialog which prompts the user for user/pwd.
Also, to clarify, the issue occurs before the user enters any information.
Idea: I think that the Esri method is not throwing an exception in situation where url is not accessible (either that, or I'm missing something). Would be nice if an exception were thrown.
Question: Anyone else seeing issue where a _deployed_ UWP app cannot access this url when url is internal? Works fine in browser on deployment machine. Also works fine in UWP app on development machine.
"https://{0}/arcgis/rest/info?f=json"
We are still looking for root cause here. Any ideas appreciated.
GenerateTokenOptions tokenOptions = new GenerateTokenOptions()
{
TokenAuthenticationType = TokenAuthenticationType.ArcGISToken,
};
CredentialRequestInfo requestInfo = new CredentialRequestInfo()
{
AuthenticationType = AuthenticationType.Token,
GenerateTokenOptions = tokenOptions,
ServiceUri = _syncUri
};
Credential credential = await AuthenticationManager.Current.GetCredentialAsync(requestInfo, false);
Thanks,
-Cory