IAuthenticationModule.CanPreAuthenticate Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Recebe um valor que indica se o módulo de autenticação suporta pré-autenticação.
public:
property bool CanPreAuthenticate { bool get(); };
public bool CanPreAuthenticate { get; }
member this.CanPreAuthenticate : bool
Public ReadOnly Property CanPreAuthenticate As Boolean
Valor de Propriedade
true se o módulo de autorização suportar pré-autenticação; caso contrário false.
Exemplos
O exemplo seguinte mostra como utilizar a CanPreAuthenticate propriedade. Para um exemplo completo, consulte a AuthenticationManager classe.
// 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; }
Private m_authenticationType As String
Private m_canPreAuthenticate As Boolean
' The CustomBasic constructor initializes the properties of the customized
' authentication.
Public Sub New()
m_authenticationType = "Basic"
m_canPreAuthenticate = False
End Sub
' Define the authentication type. This type is then used to identify this
' custom authentication module. The default is set to Basic.
Public ReadOnly Property AuthenticationType() As String _
Implements IAuthenticationModule.AuthenticationType
Get
Return m_authenticationType
End Get
End Property
' Define the pre-authentication capabilities for the module. The default is set
' to false.
Public ReadOnly Property CanPreAuthenticate() As Boolean _
Implements IAuthenticationModule.CanPreAuthenticate
Get
Return m_canPreAuthenticate
End Get
End Property
Observações
A CanPreAuthenticate propriedade é definida para true indicar que o módulo de autenticação pode responder com uma instância válida Authorization quando o PreAuthenticate método é chamado.
Notas para Implementadores
Este é tipicamente um valor fixo; Ou o módulo de autenticação pode pré-autenticar, ou não pode.