AuthenticationFailedContext Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Oggetto contesto usato in per AuthenticationFailed(AuthenticationFailedContext).
public ref class AuthenticationFailedContext : Microsoft::AspNetCore::Authentication::RemoteAuthenticationContext<Microsoft::AspNetCore::Authentication::WsFederation::WsFederationOptions ^>
public class AuthenticationFailedContext : Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext<Microsoft.AspNetCore.Authentication.WsFederation.WsFederationOptions>
type AuthenticationFailedContext = class
inherit RemoteAuthenticationContext<WsFederationOptions>
Public Class AuthenticationFailedContext
Inherits RemoteAuthenticationContext(Of WsFederationOptions)
- Ereditarietà
-
AuthenticationFailedContext
Costruttori
| AuthenticationFailedContext(HttpContext, AuthenticationScheme, WsFederationOptions) |
Crea un nuovo oggetto contesto |
Proprietà
| Exception |
Oggetto Exception che ha attivato questo evento. |
| HttpContext |
Contesto. (Ereditato da BaseContext<TOptions>) |
| Options |
Ottiene le opzioni di autenticazione associate allo schema. (Ereditato da BaseContext<TOptions>) |
| Principal |
Ottiene l'oggetto contenente le ClaimsPrincipal attestazioni utente. (Ereditato da RemoteAuthenticationContext<TOptions>) |
| Properties |
Ottiene o imposta AuthenticationProperties. (Ereditato da RemoteAuthenticationContext<TOptions>) |
| ProtocolMessage |
Oggetto WsFederationMessage dalla richiesta, se presente. |
| Request |
Richiesta. (Ereditato da BaseContext<TOptions>) |
| Response |
Risposta. (Ereditato da BaseContext<TOptions>) |
| Result |
Oggetto HandleRequestResult utilizzato dal gestore. (Ereditato da HandleRequestContext<TOptions>) |
| Scheme |
Schema di autenticazione. (Ereditato da BaseContext<TOptions>) |
Metodi
| Fail(Exception) |
Indica che l'autenticazione non è riuscita. (Ereditato da RemoteAuthenticationContext<TOptions>) |
| Fail(String) |
Indica che l'autenticazione non è riuscita. (Ereditato da RemoteAuthenticationContext<TOptions>) |
| HandleResponse() |
Sospende l'elaborazione per questa richiesta e torna al client. Il chiamante è responsabile della generazione della risposta completa. (Ereditato da HandleRequestContext<TOptions>) |
| SkipHandler() |
Interrompere l'elaborazione della richiesta nel gestore corrente. (Ereditato da HandleRequestContext<TOptions>) |
| Success() |
Chiama l'esito positivo della creazione di un ticket con e PrincipalProperties. (Ereditato da RemoteAuthenticationContext<TOptions>) |