AuthenticationBuilder.AddPolicyScheme メソッド

定義

他の PolicySchemeHandler 認証スキームにリダイレクトするために使用できるベースの認証ハンドラーを追加します。

public:
 virtual Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddPolicyScheme(System::String ^ authenticationScheme, System::String ^ displayName, Action<Microsoft::AspNetCore::Authentication::PolicySchemeOptions ^> ^ configureOptions);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddPolicyScheme (string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.PolicySchemeOptions> configureOptions);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddPolicyScheme (string authenticationScheme, string? displayName, Action<Microsoft.AspNetCore.Authentication.PolicySchemeOptions> configureOptions);
abstract member AddPolicyScheme : string * string * Action<Microsoft.AspNetCore.Authentication.PolicySchemeOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
override this.AddPolicyScheme : string * string * Action<Microsoft.AspNetCore.Authentication.PolicySchemeOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
Public Overridable Function AddPolicyScheme (authenticationScheme As String, displayName As String, configureOptions As Action(Of PolicySchemeOptions)) As AuthenticationBuilder

パラメーター

authenticationScheme
String

このスキームの名前。

displayName
String

このスキームの表示名。

configureOptions
Action<PolicySchemeOptions>

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

戻り値

ビルダー。

適用対象