AuthenticationBuilder.AddRemoteScheme<TOptions,THandler> Metoda

Definicja

RemoteAuthenticationHandler<TOptions> Dodaje bazęAuthenticationScheme, która obsługuje uwierzytelnianie zdalne, które może być używane przez IAuthenticationServiceprogram .

public:
generic <typename TOptions, typename THandler>
 where TOptions : Microsoft::AspNetCore::Authentication::RemoteAuthenticationOptionsgcnew() where THandler : Microsoft::AspNetCore::Authentication::RemoteAuthenticationHandler<TOptions> virtual Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddRemoteScheme(System::String ^ authenticationScheme, System::String ^ displayName, Action<TOptions> ^ configureOptions);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddRemoteScheme<TOptions,THandler> (string authenticationScheme, string displayName, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() where THandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>;
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddRemoteScheme<TOptions,THandler> (string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() where THandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>;
abstract member AddRemoteScheme : string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options>)
override this.AddRemoteScheme : string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<'Options>)
Public Overridable Function AddRemoteScheme(Of TOptions As {RemoteAuthenticationOptionsNew}, THandler As {RemoteAuthenticationOptionsNew}) (authenticationScheme As String, displayName As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder

Parametry typu

TOptions

Typ RemoteAuthenticationOptions do skonfigurowania programu obsługi.

THandler

Używany RemoteAuthenticationHandler<TOptions> do obsługi tego schematu.

Parametry

authenticationScheme
String

Nazwa tego schematu.

displayName
String

Nazwa wyświetlana tego schematu.

configureOptions
Action<TOptions>

Służy do konfigurowania opcji schematu.

Zwraca

Budowniczy.

Dotyczy