Show / Hide Table of Contents

Property PreAuthenticateBehavior

PreAuthenticateBehavior

Gets or sets the behavior for setting the Authorization header.

Declaration
public PreAuthenticateBehavior PreAuthenticateBehavior { get; set; }
Property Value
Type Description
PreAuthenticateBehavior

The behavior for setting the Authorization header.

Remarks

By default, .NET will not send credentials via the Authorization header until it receives a 401 WWW-Authenticate Basic response from the server, even if credentials have already been specified. This results in at least two requests being sent for each endpoint. This property allows you to change this behavior for this credential.

Applies to

Platforms and versions
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.