Enum PreAuthenticateBehavior
Determines how an ArcGISNetworkCredential should behave.
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
[DataContract]
public enum PreAuthenticateBehavior
Fields
| Name | Description |
|---|---|
| AfterFirstChallenge | The credential will be added to all future HTTP requests to a server after it has been challenged for and successfully authenticates. This is the standard .NET behavior when System.Net.Http.HttpClientHandler.PreAuthenticate
is set to |
| Always | The credential is added to all HTTP requests, without any prompting from the server. This is useful for servers that do not challenge for authentication and instead, for example, return a different view to unauthorized users. |
| Disabled | The credential is not added to an HTTP request until it has first been challenged for by the server. Because of this, the server will likely require re-authentication with this credential for every request. This is the standard .NET behavior when System.Net.Http.HttpClientHandler.PreAuthenticate
is set to |
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.10 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.10 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.10 - 100.12 |
| Xamarin.Android | 100.10 - 100.15 |
| Xamarin.iOS | 100.10 - 100.15 |
| UWP | 100.10 - 100.15 |