AuthenticationBuilder.AddRemoteScheme<TOptions,THandler> Метод

Определение

Добавляет на основе AuthenticationScheme , поддерживающий удаленную RemoteAuthenticationHandler<TOptions> проверку подлинности, которую может использовать IAuthenticationService.

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

Параметры типа

TOptions

Тип RemoteAuthenticationOptions для настройки обработчика.

THandler

Объект , используемый RemoteAuthenticationHandler<TOptions> для обработки этой схемы.

Параметры

authenticationScheme
String

Имя этой схемы.

displayName
String

Отображаемое имя этой схемы.

configureOptions
Action<TOptions>

Используется для настройки параметров схемы.

Возвращаемое значение

Построитель.

Применяется к