RemoteAuthenticationHandler<TOptions> Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément.
generic <typename TOptions>
where TOptions : RemoteAuthenticationOptionspublic ref class RemoteAuthenticationHandler abstract : Microsoft::AspNetCore::Authentication::AuthenticationHandler<TOptions>
generic <typename TOptions>
where TOptions : RemoteAuthenticationOptionsgcnew()public ref class RemoteAuthenticationHandler abstract : Microsoft::AspNetCore::Authentication::AuthenticationHandler<TOptions>, Microsoft::AspNetCore::Authentication::IAuthenticationRequestHandler
public abstract class RemoteAuthenticationHandler<TOptions> : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions> where TOptions : RemoteAuthenticationOptions
public abstract class RemoteAuthenticationHandler<TOptions> : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>, Microsoft.AspNetCore.Authentication.IAuthenticationRequestHandler where TOptions : RemoteAuthenticationOptions, new()
type RemoteAuthenticationHandler<'Options (requires 'Options :> RemoteAuthenticationOptions)> = class
inherit AuthenticationHandler<'Options (requires 'Options :> RemoteAuthenticationOptions)>
type RemoteAuthenticationHandler<'Options (requires 'Options :> RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> = class
inherit AuthenticationHandler<'Options (requires 'Options :> RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))>
interface IAuthenticationRequestHandler
interface IAuthenticationHandler
type RemoteAuthenticationHandler<'Options (requires 'Options :> RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> = class
inherit AuthenticationHandler<'Options (requires 'Options :> RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))>
interface IAuthenticationHandler
interface IAuthenticationRequestHandler
Public MustInherit Class RemoteAuthenticationHandler(Of TOptions)
Inherits AuthenticationHandler(Of TOptions)
Public MustInherit Class RemoteAuthenticationHandler(Of TOptions)
Inherits AuthenticationHandler(Of TOptions)
Implements IAuthenticationRequestHandler
Paramètres de type
- TOptions
Type des options utilisées pour configurer le gestionnaire d’authentification.
- Héritage
- Dérivé
- Implémente
Constructeurs
RemoteAuthenticationHandler<TOptions>() |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. |
RemoteAuthenticationHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder) |
Initialise une nouvelle instance de RemoteAuthenticationHandler<TOptions>. |
RemoteAuthenticationHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder, ISystemClock) |
Obsolète.
Initialise une nouvelle instance de RemoteAuthenticationHandler<TOptions>. |
Propriétés
ChallengeCalled |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
ClaimsIssuer |
Obtient l’émetteur qui doit être utilisé lorsque des revendications sont émises. (Hérité de AuthenticationHandler<TOptions>) |
Clock |
Obsolète.
Obtient ISystemClock. (Hérité de AuthenticationHandler<TOptions>) |
Context |
Obtient ou définit HttpContext. (Hérité de AuthenticationHandler<TOptions>) |
CurrentUri |
Obtient l’URL actuelle absolue. (Hérité de AuthenticationHandler<TOptions>) |
Events |
Le gestionnaire appelle des méthodes sur les événements qui donnent à l’application le contrôle à certains points où le traitement se produit. En l'absence de spécification, une instance par défaut est fournie, qui n'exécute aucune action lors de l'appel des méthodes. |
Events |
Le gestionnaire appelle des méthodes sur les événements qui donnent à l’application le contrôle à certains points où le traitement se produit. En l'absence de spécification, une instance par défaut est fournie, qui n'exécute aucune action lors de l'appel des méthodes. (Hérité de AuthenticationHandler<TOptions>) |
InitializeResult |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
Logger |
Obtient ILogger. (Hérité de AuthenticationHandler<TOptions>) |
Options |
Obtient ou définit les options associées à ce gestionnaire d’authentification. (Hérité de AuthenticationHandler<TOptions>) |
OptionsMonitor |
Obtient le IOptionsMonitor<TOptions> pour détecter les modifications apportées aux options. (Hérité de AuthenticationHandler<TOptions>) |
OriginalPath |
Obtient le chemin d’accès tel que vu par le middleware d’authentification. (Hérité de AuthenticationHandler<TOptions>) |
OriginalPathBase |
Obtient la base de chemin d’accès telle que vue par l’intergiciel d’authentification. (Hérité de AuthenticationHandler<TOptions>) |
PriorHandler |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
Request |
Obtient le HttpRequest associé à la demande actuelle. (Hérité de AuthenticationHandler<TOptions>) |
Response |
Obtient le HttpResponse associé à la demande actuelle. (Hérité de AuthenticationHandler<TOptions>) |
Scheme |
Obtient ou définit l’associé AuthenticationScheme à ce gestionnaire d’authentification. (Hérité de AuthenticationHandler<TOptions>) |
SignInAccepted |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
SignInScheme |
Schéma d’authentification utilisé par défaut pour la connexion. |
SignOutAccepted |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
TimeProvider |
Obtient l’heure actuelle, principalement pour les tests unitaires. (Hérité de AuthenticationHandler<TOptions>) |
UrlEncoder |
Obtient UrlEncoder. (Hérité de AuthenticationHandler<TOptions>) |
Méthodes
AuthenticateAsync() |
Authentifiez la demande actuelle. (Hérité de AuthenticationHandler<TOptions>) |
AuthenticateAsync(AuthenticateContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
BuildRedirectUri(String) |
Construit une URL absolue pour le spécifié |
ChallengeAsync(AuthenticationProperties) |
Défiez la demande actuelle. (Hérité de AuthenticationHandler<TOptions>) |
ChallengeAsync(ChallengeContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
CreateEventsAsync() |
Crée une instance des événements instance. |
CreateEventsAsync() |
Crée une instance des événements instance. (Hérité de AuthenticationHandler<TOptions>) |
FinishResponseAsync() |
Crochet appelé lorsque la réponse est sur le point d’être envoyée (Hérité de AuthenticationHandler<TOptions>) |
ForbidAsync(AuthenticationProperties) |
Interdire la demande actuelle. (Hérité de AuthenticationHandler<TOptions>) |
GenerateCorrelationId(AuthenticationProperties) |
Génère un cookie contenant un nonce utilisé pour mettre en corrélation la demande d’authentification distante actuelle. |
GenerateCorrelationId(AuthenticationProperties) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. |
GetDescriptions(DescribeSchemesContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
HandleAccessDeniedErrorAsync(AuthenticationProperties) |
Les types dérivés peuvent remplacer cette méthode pour gérer les erreurs d’accès refusé. |
HandleAuthenticateAsync() |
Permet aux types dérivés de gérer l’authentification. |
HandleAuthenticateOnceAsync() |
Permet de garantir que HandleAuthenticateAsync n’est appelé qu’une seule fois. Les appels suivants retournent le même résultat d’authentification. (Hérité de AuthenticationHandler<TOptions>) |
HandleAuthenticateOnceSafeAsync() |
Permet de garantir que HandleAuthenticateAsync n’est appelé qu’une seule fois en toute sécurité. Les appels suivants retournent le même résultat d’authentification. Toutes les exceptions seront converties en un résultat d’authentification ayant échoué contenant l’exception. (Hérité de AuthenticationHandler<TOptions>) |
HandleChallengeAsync(AuthenticationProperties) |
Remplacez cette méthode pour traiter les problèmes de défi 401, si un schéma d’authentification en question traite une interaction d’authentification dans le cadre de son flux de requête. Cela s'apparente à une réponse d'en-tête ou à remplacer le résultat 401 par le résultat 302 dans une page de connexion ou à un emplacement de connexion externe. (Hérité de AuthenticationHandler<TOptions>) |
HandleForbiddenAsync(AuthenticationProperties) |
Remplacez cette méthode pour gérer l’interdiction. |
HandleForbiddenAsync(AuthenticationProperties) |
Remplacez cette méthode pour gérer l’interdiction. (Hérité de AuthenticationHandler<TOptions>) |
HandleForbiddenAsync(ChallengeContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. |
HandleForbiddenAsync(ChallengeContext) |
Remplacez cette méthode pour traiter un défi qui est interdit. (Hérité de AuthenticationHandler<TOptions>) |
HandleRemoteAuthenticateAsync() |
Authentifiez l’identité de l’utilisateur auprès du fournisseur d’identité. La méthode traite la requête sur le point de terminaison défini par CallbackPath. |
HandleRemoteCallbackAsync() |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. |
HandleRequestAsync() |
Gère la demande d’authentification actuelle. |
HandleSignInAsync(SignInContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. |
HandleSignInAsync(SignInContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
HandleSignOutAsync(SignOutContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. |
HandleSignOutAsync(SignOutContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
HandleUnauthorizedAsync(ChallengeContext) |
Remplacez cette méthode pour traiter les problèmes de défi 401, si un schéma d’authentification en question traite une interaction d’authentification dans le cadre de son flux de requête. Cela s'apparente à une réponse d'en-tête ou à remplacer le résultat 401 par le résultat 302 dans une page de connexion ou à un emplacement de connexion externe. (Hérité de AuthenticationHandler<TOptions>) |
InitializeAsync(AuthenticationScheme, HttpContext) |
Initialisez le gestionnaire, résolvez les options et validez-les. (Hérité de AuthenticationHandler<TOptions>) |
InitializeAsync(TOptions, HttpContext, ILogger, UrlEncoder) |
Initialize est appelé une fois par demande pour contextualiser cette instance avec l’état approprié. (Hérité de AuthenticationHandler<TOptions>) |
InitializeEventsAsync() |
Initialise l’objet events, appelé une fois par requête par InitializeAsync(AuthenticationScheme, HttpContext). (Hérité de AuthenticationHandler<TOptions>) |
InitializeHandlerAsync() |
Appelé après l’initialisation des options/événements pour que le gestionnaire termine son initialisation. (Hérité de AuthenticationHandler<TOptions>) |
ResolveTarget(String) |
Résout le schéma vers lequel cette opération d’authentification est transférée. (Hérité de AuthenticationHandler<TOptions>) |
ShouldHandleRequestAsync() |
Obtient une valeur qui détermine si la demande d’authentification actuelle doit être gérée par HandleRequestAsync(). |
ShouldHandleScheme(String, Boolean) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
SignInAsync(SignInContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
SignOutAsync(SignOutContext) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. (Hérité de AuthenticationHandler<TOptions>) |
ValidateCorrelationId(AuthenticationProperties) |
Valide que la requête actuelle est corrélée avec la demande d’authentification à distance actuelle. |
ValidateCorrelationId(AuthenticationProperties) |
Abstraction opinionée pour un qui effectue l’authentification AuthenticationHandler<TOptions> à l’aide d’un fournisseur hébergé séparément. |
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : tout au long de 2024, nous allons éliminer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d'informations, consultez :Envoyer et afficher des commentaires pour