Condividi tramite


AuthenticationBuilder.AddPolicyScheme Metodo

Definizione

Aggiunge un PolicySchemeHandler gestore di autenticazione basato che può essere usato per reindirizzare ad altri schemi di autenticazione.

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

Parametri

authenticationScheme
String

Nome di questo schema.

displayName
String

Nome visualizzato dello schema.

configureOptions
Action<PolicySchemeOptions>

Consente di configurare le opzioni dello schema.

Restituisce

Generatore.

Si applica a