Select to view content in your preferred language

Authentication retrying indefinitely after update to 300

76
0
10 hours ago
Labels (3)
TimScheiber
Occasional Contributor

Hi,

I've tried to update ArcGIS Runtime to Version 300 today and noticed an issue:

When credential creation fails for a federated service, the challenge handler is called repeatedly without stopping.

I am aware of the new Error and PreviousFailureCount properties on CredentialRequestInfo. According to the description of PreviousFailureCount, authentication should be attempted at most five times for a single failed request. However, in my case, authentication continues indefinitely, and CredentialRequestInfo.PreviousFailureCount always remains 0 for the federated service.

The other request details are:
- AuthenticationType: Token
- Error: A token or API key is required: A token or API key was not provided to access xyz

I create PregeneratedTokenCredential instances programmatically in a web service. If credential creation fails, indefinite authentication retries are a significant issue because they repeatedly call the web service.

I also noticed that, for federated services, CredentialRequestInfo.ServiceUri now contains the portal URL instead of the service URL. This is not the issue here though.

Am I doing something wrong, is this a Bug or expected behaviour?

Best regards,
Tim

0 Kudos
0 Replies