Leer en inglés

Compartir a través de


IAuthenticationModule.AuthenticationType Propiedad

Definición

Obtiene el tipo de autenticación proporcionado por este módulo de autenticación.

C#
public string AuthenticationType { get; }

Valor de propiedad

Cadena que indica el tipo de autenticación proporcionado por este módulo de autenticación.

Ejemplos

En el ejemplo siguiente se muestra cómo usar la propiedad AuthenticationType. Para obtener un ejemplo completo, consulte la AuthenticationManager clase .

C#
// 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; }

Comentarios

La AuthenticationType propiedad identifica el tipo de autenticación implementado por este módulo de autenticación. El AuthenticationType método usa la AuthenticationManager.Register propiedad para determinar si el módulo de autenticación se ha registrado y el AuthenticationManager.Unregister método para quitar un módulo de autenticación registrado.

Se aplica a

Producto Versiones
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 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, 2.1