IAuthenticationModule.AuthenticationType Property

Definition

Gets the authentication type provided by this authentication module.

public string AuthenticationType { get; }

Property Value

A string indicating the authentication type provided by this authentication module.

Examples

The following example shows how to use the AuthenticationType property. For a complete example refer to the AuthenticationManager class.

// Define the authentication type. This type is then used to identify this
// custom authentication module. The default is set to Basic.
public string AuthenticationType { get; } = "Basic";

// Define the pre-authentication capabilities for the module. The default is set
// to false.
public bool CanPreAuthenticate { get; }

Remarks

The AuthenticationType property identifies the authentication type implemented by this authentication module. The AuthenticationType property is used by the AuthenticationManager.Register method to determine if the authentication module has been registered, and by the AuthenticationManager.Unregister method to remove a registered authentication module.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.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, 2.1