Aracılığıyla paylaş


AuthenticationBuilder.AddPolicyScheme Yöntem

Tanım

Diğer kimlik doğrulama düzenlerine yeniden yönlendirmek için kullanılabilecek tabanlı bir PolicySchemeHandler kimlik doğrulama işleyicisi ekler.

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

Parametreler

authenticationScheme
String

Bu düzenin adı.

displayName
String

Bu düzenin görünen adı.

configureOptions
Action<PolicySchemeOptions>

Düzen seçeneklerini yapılandırmak için kullanılır.

Döndürülenler

İnşaatçı.

Şunlara uygulanır