Show / Hide Table of Contents

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 true.

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.

Credentials are sent in the Authorization header using the "Basic" scheme (RFC 7617). Other HTTP authentication schemes are not supported in this mode.

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 false.

Applies to

TargetVersions
.NET Standard 2.0100.10 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.10 - 200.8
Xamarin.Android100.10 - 100.15
Xamarin.iOS100.10 - 100.15
UWP100.10 - 200.8
In This Article
Back to top Copyright © 2022 Esri.