WindowsIdentity.AuthenticationType Property

Definition

Gets the type of authentication used to identify the user.

C#
public override sealed string? AuthenticationType { get; }
C#
public override sealed string AuthenticationType { get; }
C#
public virtual string AuthenticationType { get; }
C#
public string AuthenticationType { get; }

Property Value

The type of authentication used to identify the user.

Implements

Exceptions

Windows returned the Windows NT status code STATUS_ACCESS_DENIED.

There is insufficient memory available.

The caller does not have the correct permissions.

-or-

The computer is not attached to a Windows 2003 or later domain.

-or-

The computer is not running Windows 2003 or later.

-or-

The user is not a member of the domain the computer is attached to.

Remarks

This property is informational; it is not used by the security system. On Windows Vista and later versions of the Windows operating system, the default value for this property is Negotiate, which chooses the best security support provider (SSP) based on customer-configured security policy. The default property value for earlier versions of the Windows operating system is Kerberos.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5