OpenIdConnectHandler Classe

Définition

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

public ref class OpenIdConnectHandler : Microsoft::AspNetCore::Authentication::RemoteAuthenticationHandler<Microsoft::AspNetCore::Builder::OpenIdConnectOptions ^>
public ref class OpenIdConnectHandler : Microsoft::AspNetCore::Authentication::RemoteAuthenticationHandler<Microsoft::AspNetCore::Authentication::OpenIdConnect::OpenIdConnectOptions ^>, Microsoft::AspNetCore::Authentication::IAuthenticationSignOutHandler
public class OpenIdConnectHandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<Microsoft.AspNetCore.Builder.OpenIdConnectOptions>
public class OpenIdConnectHandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions>, Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler
type OpenIdConnectHandler = class
    inherit RemoteAuthenticationHandler<OpenIdConnectOptions>
type OpenIdConnectHandler = class
    inherit RemoteAuthenticationHandler<OpenIdConnectOptions>
    interface IAuthenticationSignOutHandler
    interface IAuthenticationHandler
Public Class OpenIdConnectHandler
Inherits RemoteAuthenticationHandler(Of OpenIdConnectOptions)
Public Class OpenIdConnectHandler
Inherits RemoteAuthenticationHandler(Of OpenIdConnectOptions)
Implements IAuthenticationSignOutHandler
Héritage
Héritage
Implémente

Constructeurs

OpenIdConnectHandler(HttpClient, HtmlEncoder)

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

OpenIdConnectHandler(IOptionsMonitor<OpenIdConnectOptions>, ILoggerFactory, HtmlEncoder, UrlEncoder)

Initialise une nouvelle instance de OpenIdConnectHandler.

OpenIdConnectHandler(IOptionsMonitor<OpenIdConnectOptions>, ILoggerFactory, HtmlEncoder, UrlEncoder, ISystemClock)
Obsolète.

Initialise une nouvelle instance de OpenIdConnectHandler.

Propriétés

Backchannel

Obtient le HttpClient utilisé pour communiquer avec le fournisseur d’identité distant.

ChallengeCalled

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

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

HtmlEncoder

Obtient HtmlEncoder.

InitializeResult

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

(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

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

(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

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

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

Schéma d’authentification utilisé par défaut pour la connexion.

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

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

(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)

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

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

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

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

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

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

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.

(Hérité de RemoteAuthenticationHandler<TOptions>)
GenerateCorrelationId(AuthenticationProperties)

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

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

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

(Hérité de AuthenticationHandler<TOptions>)
GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, AuthenticationTicket)

Accède au point de terminaison UserInfo pour récupérer des revendications supplémentaires et ajouter des revendications uniques à l’identité donnée.

GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, ClaimsPrincipal, AuthenticationProperties)

Accède au point de terminaison UserInfo pour récupérer des revendications supplémentaires et ajouter des revendications uniques à l’identité donnée.

HandleAccessDeniedErrorAsync(AuthenticationProperties)

Les types dérivés peuvent remplacer cette méthode pour gérer les erreurs d’accès refusé.

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

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

(Hérité de RemoteAuthenticationHandler<TOptions>)
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)

Répond à un défi 401. Envoie un message OpenIdConnect à l’autorité d’identité pour obtenir une identité.

HandleForbiddenAsync(AuthenticationProperties)

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

(Hérité de RemoteAuthenticationHandler<TOptions>)
HandleForbiddenAsync(ChallengeContext)

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

(Hérité de RemoteAuthenticationHandler<TOptions>)
HandleRemoteAuthenticateAsync()

Appelé pour traiter les messages OpenIdConnect entrants.

HandleRemoteCallbackAsync()

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

(Hérité de RemoteAuthenticationHandler<TOptions>)
HandleRemoteSignOutAsync()

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

HandleRequestAsync()

Gère la demande d’authentification actuelle.

HandleSignInAsync(SignInContext)

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

(Hérité de RemoteAuthenticationHandler<TOptions>)
HandleSignOutAsync(SignOutContext)

Rediriger l’utilisateur vers le fournisseur d’identité pour se déconnecter

HandleSignOutAsync(SignOutContext)

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

(Hérité de RemoteAuthenticationHandler<TOptions>)
HandleSignOutCallbackAsync()

Réponse au rappel du fournisseur OpenId après la fin de la session.

HandleUnauthorizedAsync(ChallengeContext)

Répond à un défi 401. Envoie un message OpenIdConnect à l’autorité d’identité pour obtenir une identité.

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>)
RedeemAuthorizationCodeAsync(OpenIdConnectMessage)

Échange le code d’autorisation contre les jetons au point de terminaison de jeton.

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

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

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

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

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

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

Rediriger l’utilisateur vers le fournisseur d’identité pour se déconnecter

SignOutAsync(SignOutContext)

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

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

Valide que la requête actuelle est corrélée avec la demande d’authentification à distance actuelle.

(Hérité de RemoteAuthenticationHandler<TOptions>)
ValidateCorrelationId(AuthenticationProperties)

Gestionnaire d'authentification par demande pour l'OpenIdConnectAuthenticationMiddleware.

(Hérité de RemoteAuthenticationHandler<TOptions>)

S’applique à