After updating nuget package of the ESRI.ArcGISRunTime to 200 our Basemap stopped working.
I am able to load portal features, display them on the map etc.
When the program is trying to load Basemap I am getting an endless loop of prompts asking me to log in again.
After investigating it deeper I think in the Basemap API calls there is no Token being passed.
// This will create an endless login loop
var map = new Map(BasemapStyle.ArcGISDarkGray);
// This work fine
var map = new Map();
I am using the standard OAuth method with TokenAuthenticationType.OAuthAuthorizationCode.
ServerInfo portalServerInfo = new ServerInfo(esriPortalUri)
{
OAuthClientInfo =
new OAuthClientInfo(clientId, redirectUri, clientSecret),
TokenAuthenticationType = TokenAuthenticationType.OAuthAuthorizationCode
};
// Register the server information with the AuthenticationManager.
AuthenticationManager.Current.RegisterServer(portalServerInfo);
var credential = await AuthenticationManager.Current.GenerateCredentialAsync(esriPortalUri);
AuthenticationManager.Current.AddCredential((OAuthTokenCredential) credential );
Basemap prompt request without Token from SDK.
Esri.ArcGISRuntime v200.0
Esri.ArcGISRuntime.WPF v200.0
Esri.ArcGISRuntime.Toolkit.WPF v200.0