laptop and a wrench

Bug

The RouteTask.setCredential method is not applying the credential to service requests.

Zuletzt veröffentlicht: September 20, 2019 ArcGIS Runtime SDK
Bug-ID-Nummer BUG-000124688
EingereichtAugust 21, 2019
Zuletzt geändertJune 11, 2022
Gilt fürArcGIS Runtime SDK
Gefunden in Version100.5
BetriebssystemApple iOS
BetriebssystemversionN/A
StatusIn Product Plan

Workaround

Use one of the following workarounds:

  • Set a UserCredential that is constructed from username and password like the following on the RouteTask.

UserCredential credential = new UserCredential(“your username”, “your password”);

  • Use the AuthenticationManager.CredentialCache.restoreFromJson method to apply token for the service https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/security/AuthenticationManager.CredentialCache.html#restoreFromJson(java.lang.String).

e.g.

AuthenticationManager.CredentialCache.restoreFromJson("[{\"serverContext\":\"route.arcgis.com/arcgis\",\"credential\":\"{\\\"password\\\":\\\"\\\",\\\"token\\\":{\\\"expires\\\":9223372036854775807,\\\"ssl\\\":true,\\\"token\\\":\\\" <token> \\\"},\\\"username\\\":\\\"\\\"}\"}]");

Schritte zur Reproduzierung

Bug-ID: BUG-000124688

Software:

  • ArcGIS Runtime SDK

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln