Share via


AuthenticationBuilder.AddRemoteScheme<TOptions,THandler> メソッド

定義

RemoteAuthenticationHandler<TOptions>で使用できるリモート認証をサポートする ベースAuthenticationSchemeIAuthenticationService追加します。

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>

スキーム オプションを構成するために使用します。

戻り値

ビルダー。

適用対象