Partager via


OAuthMiddleware<TOptions> Constructeur

Définition

Initialise un nouveau OAuthMiddleware<TOptions>.

public:
 OAuthMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ dataProtectionProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::Text::Encodings::Web::UrlEncoder ^ encoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Authentication::SharedAuthenticationOptions ^> ^ sharedOptions, Microsoft::Extensions::Options::IOptions<TOptions> ^ options);
public OAuthMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions> sharedOptions, Microsoft.Extensions.Options.IOptions<TOptions> options);
new Microsoft.AspNetCore.Authentication.OAuth.OAuthMiddleware<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions and 'Options : (new : unit -> 'Options))> : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions> * Microsoft.Extensions.Options.IOptions<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.OAuth.OAuthMiddleware<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions and 'Options : (new : unit -> 'Options))>
Public Sub New (next As RequestDelegate, dataProtectionProvider As IDataProtectionProvider, loggerFactory As ILoggerFactory, encoder As UrlEncoder, sharedOptions As IOptions(Of SharedAuthenticationOptions), options As IOptions(Of TOptions))

Paramètres

next
RequestDelegate

Intergiciel suivant dans le pipeline HTTP à appeler.

dataProtectionProvider
IDataProtectionProvider
loggerFactory
ILoggerFactory
encoder
UrlEncoder

L’UrlEncoderopérateur

sharedOptions
IOptions<SharedAuthenticationOptions>

Options SharedAuthenticationOptions de configuration de ce middleware.

options
IOptions<TOptions>

Options de configuration pour l’intergiciel.

S’applique à