Partager via


AuthenticationBuilder.AddPolicyScheme Méthode

Définition

Ajoute un PolicySchemeHandler gestionnaire d’authentification basé qui peut être utilisé pour rediriger vers d’autres schémas d’authentification.

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

Paramètres

authenticationScheme
String

Nom de ce schéma.

displayName
String

Nom complet de ce schéma.

configureOptions
Action<PolicySchemeOptions>

Utilisé pour configurer les options de schéma.

Retours

Générateur.

S’applique à