CookieAuthenticationHandler Classe

Définition

Implémentation du gestionnaire d’authentification basée sur les cookies.

public ref class CookieAuthenticationHandler : Microsoft::AspNetCore::Authentication::AuthenticationHandler<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^>, Microsoft::AspNetCore::Authentication::IAuthenticationSignInHandler
public ref class CookieAuthenticationHandler : Microsoft::AspNetCore::Authentication::SignInAuthenticationHandler<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^>
public class CookieAuthenticationHandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>, Microsoft.AspNetCore.Authentication.IAuthenticationSignInHandler
public class CookieAuthenticationHandler : Microsoft.AspNetCore.Authentication.SignInAuthenticationHandler<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>
type CookieAuthenticationHandler = class
    inherit AuthenticationHandler<CookieAuthenticationOptions>
    interface IAuthenticationSignInHandler
    interface IAuthenticationSignOutHandler
    interface IAuthenticationHandler
type CookieAuthenticationHandler = class
    inherit SignInAuthenticationHandler<CookieAuthenticationOptions>
Public Class CookieAuthenticationHandler
Inherits AuthenticationHandler(Of CookieAuthenticationOptions)
Implements IAuthenticationSignInHandler
Public Class CookieAuthenticationHandler
Inherits SignInAuthenticationHandler(Of CookieAuthenticationOptions)
Héritage
Héritage
Implémente

Constructeurs

CookieAuthenticationHandler(IOptionsMonitor<CookieAuthenticationOptions>, ILoggerFactory, UrlEncoder)

Initialise une nouvelle instance de CookieAuthenticationHandler.

CookieAuthenticationHandler(IOptionsMonitor<CookieAuthenticationOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
Obsolète.

Initialise une nouvelle instance de CookieAuthenticationHandler.

Propriétés

ChallengeCalled

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)
ClaimsIssuer

Obtient l’émetteur qui doit être utilisé lors de l’émission de revendications.

(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 a lieu. 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.

InitializeResult

Implémentation du gestionnaire d’authentification basée sur les cookies.

(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 qu’il est vu par l’intergiciel d’authentification.

(Hérité de AuthenticationHandler<TOptions>)
OriginalPathBase

Obtient la base de chemin d’accès telle qu’elle est vue par l’intergiciel d’authentification.

(Hérité de AuthenticationHandler<TOptions>)
PriorHandler

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)
Request

Obtient le HttpRequest associé à la requête actuelle.

(Hérité de AuthenticationHandler<TOptions>)
Response

Obtient le HttpResponse associé à la requête actuelle.

(Hérité de AuthenticationHandler<TOptions>)
Scheme

Obtient ou définit l’associé AuthenticationScheme à ce gestionnaire d’authentification.

(Hérité de AuthenticationHandler<TOptions>)
SignInAccepted

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)
SignOutAccepted

Implémentation du gestionnaire d’authentification basée sur les cookies.

(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 requête actuelle.

(Hérité de AuthenticationHandler<TOptions>)
AuthenticateAsync(AuthenticateContext)

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)
BuildRedirectUri(String)

Construit une URL absolue pour le spécifié targetPath.

(Hérité de AuthenticationHandler<TOptions>)
ChallengeAsync(AuthenticationProperties)

Défiez la requête actuelle.

(Hérité de AuthenticationHandler<TOptions>)
ChallengeAsync(ChallengeContext)

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)
CreateEventsAsync()

Crée une instance des événements instance.

FinishResponseAsync()

Hook appelé lorsque la réponse est sur le point d’être envoyée

ForbidAsync(AuthenticationProperties)

Interdire la requête actuelle.

(Hérité de AuthenticationHandler<TOptions>)
GetDescriptions(DescribeSchemesContext)

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)
HandleAuthenticateAsync()

Permet aux types dérivés de gérer l’authentification.

HandleAuthenticateOnceAsync()

Permet de s’assurer 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 s’assurer 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 sont 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.

HandleForbiddenAsync(AuthenticationProperties)

Remplacez cette méthode pour gérer l’interdiction.

HandleForbiddenAsync(ChallengeContext)

Remplacez cette méthode pour traiter un défi interdit.

(Hérité de AuthenticationHandler<TOptions>)
HandleRequestAsync()

Appelée une fois par code commun après l'initialisation. Si un intergiciel d’authentification répond directement aux chemins d’accès spécifiquement connus, il doit remplacer ce virtuel, comparez le chemin de la requête à ses chemins connus, fournissez les informations de réponse appropriées et true pour arrêter le traitement ultérieur.

(Hérité de AuthenticationHandler<TOptions>)
HandleSignInAsync(ClaimsPrincipal, AuthenticationProperties)

Remplacez cette méthode pour gérer SignIn.

HandleSignInAsync(SignInContext)

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)
HandleSignOutAsync(AuthenticationProperties)

Remplacez cette méthode pour gérer SignOut.

HandleSignOutAsync(SignOutContext)

Implémentation du gestionnaire d’authentification basée sur les cookies.

(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 demande 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.

ResolveTarget(String)

Résout le schéma vers lequel cette opération d’authentification est transférée.

(Hérité de AuthenticationHandler<TOptions>)
ShouldHandleScheme(String, Boolean)

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)
SignInAsync(ClaimsPrincipal, AuthenticationProperties)

Implémentation du gestionnaire d’authentification basée sur les cookies.

SignInAsync(ClaimsPrincipal, AuthenticationProperties)

Gérer la connexion.

(Hérité de SignInAuthenticationHandler<TOptions>)
SignInAsync(SignInContext)

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)
SignOutAsync(AuthenticationProperties)

Implémentation du gestionnaire d’authentification basée sur les cookies.

SignOutAsync(AuthenticationProperties)

Comportement de déconnexion.

(Hérité de SignOutAuthenticationHandler<TOptions>)
SignOutAsync(SignOutContext)

Implémentation du gestionnaire d’authentification basée sur les cookies.

(Hérité de AuthenticationHandler<TOptions>)

S’applique à